]> git.saurik.com Git - apt.git/commitdiff
* ftparchive/writer.cc:
authorMichael Vogt <michael.vogt@ubuntu.com>
Thu, 9 Sep 2010 17:04:26 +0000 (19:04 +0200)
committerMichael Vogt <michael.vogt@ubuntu.com>
Thu, 9 Sep 2010 17:04:26 +0000 (19:04 +0200)
  - null the valid string instead of the date if Valid-Until is not set
* apt-pkg/acquire-item.cc:
  - use also unsigned Release files again (Closes: #596189)

apt-pkg/acquire-item.cc
debian/changelog
ftparchive/writer.cc

index 752bc6a993eaed835def31268c708194cde4affd..7257f89e40fc401c453d5ba5bdb4489d39535dc5 100644 (file)
@@ -1060,12 +1060,6 @@ void pkgAcqMetaIndex::Done(string Message,unsigned long Size,string Hash,        /*{{{*
 
       // all cool, move Release file into place
       Complete = true;
-
-      string FinalFile = _config->FindDir("Dir::State::lists");
-      FinalFile += URItoFileName(RealURI);
-      Rename(DestFile,FinalFile);
-      chmod(FinalFile.c_str(),0644);
-      DestFile = FinalFile;
    }
    else
    {
@@ -1092,8 +1086,18 @@ void pkgAcqMetaIndex::Done(string Message,unsigned long Size,string Hash,        /*{{{*
          Desc.URI = "gpgv:" + SigFile;
          QueueURI(Desc);
          Mode = "gpgv";
+        return;
       }
    }
+
+   if (Complete == true)
+   {
+      string FinalFile = _config->FindDir("Dir::State::lists");
+      FinalFile += URItoFileName(RealURI);
+      Rename(DestFile,FinalFile);
+      chmod(FinalFile.c_str(),0644);
+      DestFile = FinalFile;
+   }
 }
                                                                        /*}}}*/
 void pkgAcqMetaIndex::RetrievalDone(string Message)                    /*{{{*/
index 4fdf13ccc2dd478cc9ed370e777b891dda884505..7b126b6619301340c93fccaf585c8eb78c7174e1 100644 (file)
@@ -1,9 +1,16 @@
 apt (0.8.4) UNRELEASED; urgency=low
 
+  [ Michael vogt ]
   * ftparchive/writer.cc:
     - write out {Files,Checksum-Sha1,Checksum-Sha256} only if
       available LP: #633967. Thanks to Colin Watson
 
+  [ David Kalnischkies ]
+  * ftparchive/writer.cc:
+    - null the valid string instead of the date if Valid-Until is not set
+  * apt-pkg/acquire-item.cc:
+    - use also unsigned Release files again (Closes: #596189)
+
  -- Michael Vogt <michael.vogt@ubuntu.com>  Thu, 09 Sep 2010 15:30:19 +0200
 
 apt (0.8.3) unstable; urgency=low
index c280f5ed364b5293b36162a665858b7407783bd9..d7d699ddc8a0e63bc7948b8da278e7fa66862e50 100644 (file)
@@ -928,12 +928,12 @@ ReleaseWriter::ReleaseWriter(string const &DB)
    }
 
    time_t const validuntil = now + _config->FindI("APT::FTPArchive::Release::ValidTime", 0);
-   char validstr[128] = "";
+   char validstr[128];
    if (now == validuntil ||
        strftime(validstr, sizeof(validstr), "%a, %d %b %Y %H:%M:%S UTC",
                 gmtime(&validuntil)) == 0)
    {
-      datestr[0] = '\0';
+      validstr[0] = '\0';
    }
 
    map<string,string> Fields;