]> git.saurik.com Git - apt.git/commitdiff
* methods/gpgv.cc:
authorMichael Vogt <michael.vogt@ubuntu.com>
Thu, 6 Dec 2007 18:34:08 +0000 (19:34 +0100)
committerMichael Vogt <michael.vogt@ubuntu.com>
Thu, 6 Dec 2007 18:34:08 +0000 (19:34 +0100)
  - remove cruft code that caused timestamp/I-M-S issues
* ftparchive/contents.cc:
  - fix error output
* methods/mirror.{cc,h}:
  - only update mirror list on IndexFile updates
* ftparchive/contents.cc:
  - support lzma data members
* ftparchive/multicompress.cc:
  - support lzma output

configure.in
debian/changelog
ftparchive/contents.cc
ftparchive/multicompress.cc
methods/gpgv.cc
test/pre-upload-check.py

index 1490d57b8dad51101a814620baff96c0fb8ee6bb..a2b554a0caba5856eb499c5134ef18bcdcf073b9 100644 (file)
@@ -18,7 +18,7 @@ AC_CONFIG_AUX_DIR(buildlib)
 AC_CONFIG_HEADER(include/config.h:buildlib/config.h.in include/apti18n.h:buildlib/apti18n.h.in)
 
 dnl -- SET THIS TO THE RELEASE VERSION --
-AC_DEFINE_UNQUOTED(VERSION,"0.7.10ubuntu1")
+AC_DEFINE_UNQUOTED(VERSION,"0.7.9ubuntu1")
 PACKAGE="apt"
 AC_DEFINE_UNQUOTED(PACKAGE,"$PACKAGE")
 AC_SUBST(PACKAGE)
index 6bed39d1bdd918724455a10866c58662abe4dbca..2bfbc100abb5880c081c59fa55f989d1ee09fb1c 100644 (file)
@@ -1,11 +1,4 @@
-apt (0.7.10ubuntu1) hardy; urgency=low
-
-  * methods/mirror.{cc,h}:
-    - only update mirror list on IndexFile updates 
-
- -- Michael Vogt <michael.vogt@ubuntu.com>  Wed, 28 Nov 2007 15:57:18 +0100
-
-apt (0.7.10) unstable; urgency=low
+apt (0.7.9ubuntu1) hardy; urgency=low
 
   [ Otavio Salvador ]
   * Applied patch from Mike O'Connor <stew@vireo.org> to add a manpage to
@@ -25,8 +18,20 @@ apt (0.7.10) unstable; urgency=low
   [ Michael Vogt ]
   * debian/rules
     - fix https install location
+  * methods/gpgv.cc:
+    - remove cruft code that caused timestamp/I-M-S issues
+  * ftparchive/contents.cc:
+    - fix error output
+  * methods/mirror.{cc,h}:
+    - only update mirror list on IndexFile updates 
 
- -- Michael Vogt <mvo@debian.org>  Wed, 28 Nov 2007 17:10:49 +0100
+  [ Chris Cheney ]
+  * ftparchive/contents.cc:
+    - support lzma data members
+  * ftparchive/multicompress.cc:
+    - support lzma output
+
+ -- Michael Vogt <michael.vogt@ubuntu.com>  Thu, 06 Dec 2007 19:32:07 +0100
 
 apt (0.7.9) unstable; urgency=low
 
@@ -153,13 +158,6 @@ apt (0.7.7) unstable; urgency=low
  
  -- Michael Vogt <mvo@debian.org>  Tue, 23 Oct 2007 14:58:03 +0200
 
-apt (0.7.6) unstable; urgency=low
-
-  * Applied patch from Aurelien Jarno <aurel32@debian.org> to fix wrong
-    directory downloading on non-linux architectures (closes: #435597)
-
- -- Otavio Salvador <otavio@debian.org>  Wed, 01 Aug 2007 19:49:51 -0300
-
 apt (0.7.6ubuntu14.1) gutsy-proposed; urgency=low
 
   [ Michael Vogt ]
index 3801995bd3829a40929f34097ae389296c75bd33..1f2cbcc3d2ff3ba78c58cb165bcd845665e7a2c5 100644 (file)
@@ -314,7 +314,12 @@ bool ContentsExtract::Read(debDebFile &Deb)
       Compressor = "bzip2";
    }
    if (Member == 0) {
-      _error->Error(_("Internal error, could not locate member %s"),"data.tar.gz");
+      Member = Deb.GotoMember("data.tar.lzma");
+      Compressor = "lzma";
+   }
+   if (Member == 0) {
+      _error->Error(_("Internal error, could not locate member %s"),
+                   "data.tar.{gz,bz2,lzma}");
       return false;
    }
       
index 935c9887762e998e8b442f5b79f8b48dc0723045..2fc8efcbfe142e3882480d79b9b249be219e1aa3 100644 (file)
@@ -34,6 +34,7 @@ const MultiCompress::CompType MultiCompress::Compressors[] =
       {{".","",0,0,0,1},
        {"gzip",".gz","gzip","-9n","-d",2},
        {"bzip2",".bz2","bzip2","-9","-d",3},
+       {"lzma",".lzma","lzma","-9","-d",4},
        {}};
 
 // MultiCompress::MultiCompress - Constructor                          /*{{{*/
index 2b1fa51691e26b9350f01f7b5ffcd9db22e22278..01b2408561b5946e15df3142638158a44e350422 100644 (file)
@@ -266,23 +266,6 @@ bool GPGVMethod::Fetch(FetchItem *Itm)
         return _error->Error(errmsg.c_str());
    }
       
-   // Transfer the modification times
-   struct stat Buf;
-   if (stat(Path.c_str(),&Buf) != 0)
-      return _error->Errno("stat",_("Failed to stat %s"), Path.c_str());
-
-   struct utimbuf TimeBuf;
-   TimeBuf.actime = Buf.st_atime;
-   TimeBuf.modtime = Buf.st_mtime;
-   if (utime(Itm->DestFile.c_str(),&TimeBuf) != 0)
-      return _error->Errno("utime",_("Failed to set modification time"));
-
-   if (stat(Itm->DestFile.c_str(),&Buf) != 0)
-      return _error->Errno("stat",_("Failed to stat"));
-   
-   // Return a Done response
-   Res.LastModified = Buf.st_mtime;
-   Res.Size = Buf.st_size;
    // Just pass the raw output up, because passing it as a real data
    // structure is too difficult with the method stuff.  We keep it
    // as three separate vectors for future extensibility.
index 373683360cfda6de75bed8d0ac4fa3540f8ff749..268b3d6720a321093faad41a6e6b35bfb7d5b8e4 100755 (executable)
@@ -120,22 +120,6 @@ class testLocalRepositories(unittest.TestCase):
             self.assert_(os.path.exists(os.path.join(self.repo,"Packages.gz")),
                          "Packages.gz vanished from local repo")
 
-    def testLocalRepo2(self):
-        repo = os.path.abspath(os.path.join(os.getcwd(), self.repo_dir+"2"))
-        sources = os.path.join(self.repo, "sources.list")
-        s = open(sources,"w")
-        s.write("deb file://%s/ /\n" % repo)
-        s.close()
-
-        # two times to get at least one i-m-s hit
-        for i in range(2):
-            self.assert_(os.path.exists(sources))
-            cmd = [self.apt,"update","-o", "Dir::Etc::sourcelist=%s" % sources]+apt_args
-            res = call(cmd, stdout=stdout, stderr=stderr)
-            self.assertEqual(res, 0, "local repo2 test failed")
-            self.assert_(os.path.exists(os.path.join(repo,"Packages.gz")),
-                         "Packages.gz vanished from local repo")
-
     def testInstallFromLocalRepo(self):
         apt = [self.apt,"-o", "Dir::Etc::sourcelist=%s"% self.sources]+apt_args
         cmd = apt+["update"]