]> git.saurik.com Git - apt.git/commitdiff
Bug fixes, new major version
authorArch Librarian <arch@canonical.com>
Mon, 20 Sep 2004 16:55:44 +0000 (16:55 +0000)
committerArch Librarian <arch@canonical.com>
Mon, 20 Sep 2004 16:55:44 +0000 (16:55 +0000)
Author: jgg
Date: 2000-01-27 04:15:09 GMT
Bug fixes, new major version

apt-pkg/acquire-item.h
apt-pkg/acquire-worker.cc
apt-pkg/acquire.cc
apt-pkg/acquire.h
debian/changelog
dselect/install
dselect/setup
methods/file.cc

index 459d7d26d6bdaae621b594fa5308e65aa4b7ed72..bf1a50e756da79378f638ed4b3eb16eedc6c20c1 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
-// $Id: acquire-item.h,v 1.23 2000/01/17 07:11:49 jgg Exp $
+// $Id: acquire-item.h,v 1.24 2000/01/27 04:15:09 jgg Exp $
 /* ######################################################################
 
    Acquire Item - Item to acquire
@@ -71,7 +71,8 @@ class pkgAcquire::Item
    
    // Inquire functions
    virtual string MD5Sum() {return string();};
-         
+   pkgAcquire *GetOwner() {return Owner;};
+   
    Item(pkgAcquire *Owner);
    virtual ~Item();
 };
index 40092d5d6c65e237b01e87404511961c7fc6cd5d..97a7fbb77eb016fb840a8f5391d15d0c62a4efe7 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
-// $Id: acquire-worker.cc,v 1.29 2000/01/17 07:11:49 jgg Exp $
+// $Id: acquire-worker.cc,v 1.30 2000/01/27 04:15:09 jgg Exp $
 /* ######################################################################
 
    Acquire Worker 
@@ -233,6 +233,10 @@ bool pkgAcquire::Worker::RunMessages()
            ResumePoint = atoi(LookupTag(Message,"Resume-Point","0").c_str());
            Itm->Owner->Start(Message,atoi(LookupTag(Message,"Size","0").c_str()));
 
+           // Display update before completion
+           if (Log != 0 && Log->MorePulses == true)
+              Log->Pulse(Itm->Owner->GetOwner());
+           
            if (Log != 0)
               Log->Fetch(*Itm);
 
@@ -247,9 +251,14 @@ bool pkgAcquire::Worker::RunMessages()
               _error->Error("Method gave invalid 201 URI Done message");
               break;
            }
-
+           
            pkgAcquire::Item *Owner = Itm->Owner;
            pkgAcquire::ItemDesc Desc = *Itm;
+           
+           // Display update before completion
+           if (Log != 0 && Log->MorePulses == true)
+              Log->Pulse(Owner->GetOwner());
+           
            OwnerQ->ItemDone(Itm);
            if (TotalSize != 0 && 
                (unsigned)atoi(LookupTag(Message,"Size","0").c_str()) != TotalSize)
@@ -286,6 +295,10 @@ bool pkgAcquire::Worker::RunMessages()
               break;
            }
 
+           // Display update before completion
+           if (Log != 0 && Log->MorePulses == true)
+              Log->Pulse(Itm->Owner->GetOwner());
+           
            pkgAcquire::Item *Owner = Itm->Owner;
            pkgAcquire::ItemDesc Desc = *Itm;
            OwnerQ->ItemDone(Itm);
index da3160caed1b171e6fe8a7aa72171ead56f1b6d9..428bfd50fda7b602725d5fa31a2cf4d751065a17 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
-// $Id: acquire.cc,v 1.45 2000/01/17 07:11:49 jgg Exp $
+// $Id: acquire.cc,v 1.46 2000/01/27 04:15:09 jgg Exp $
 /* ######################################################################
 
    Acquire - File Acquiration
@@ -706,7 +706,7 @@ void pkgAcquire::Queue::Bump()
 // AcquireStatus::pkgAcquireStatus - Constructor                       /*{{{*/
 // ---------------------------------------------------------------------
 /* */
-pkgAcquireStatus::pkgAcquireStatus()
+pkgAcquireStatus::pkgAcquireStatus() : Update(true), MorePulses(false)
 {
    Start();
 }
index 5565ad3ac72f716e3413300732104538c7f5000c..de1474f56f6c83eab230a262d45f74c5eb31bc0f 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
-// $Id: acquire.h,v 1.26 2000/01/17 07:11:49 jgg Exp $
+// $Id: acquire.h,v 1.27 2000/01/27 04:15:09 jgg Exp $
 /* ######################################################################
 
    Acquire - File Acquiration
@@ -253,7 +253,8 @@ class pkgAcquireStatus
    public:
 
    bool Update;
-   
+   bool MorePulses;
+      
    // Called by items when they have finished a real download
    virtual void Fetched(unsigned long Size,unsigned long ResumePoint);
    
index 8d1f98f101b12cc388787a0f06ae8f148e8da2c0..8a526e0369072bc44594cee1253fb64eebb03fcb 100644 (file)
@@ -7,8 +7,14 @@ apt (0.3.16.1) unstable; urgency=low
   * Included the configure-index example
   * Minimal CD swaps
   * Library soname has increased
-  * Fixed default sources.list to have correct URLs for potato when it becomes
-    stable
+  * Fixed default sources.list to have correct URLs for potato when it 
+    becomes stable
+  * Added a message about erasing sources.list to dselect setup script
+    Closes: #55755
+  * No remove prompt if the archives dir has not changed. Closes: #55709
+  * Fixed inclusion of 2nd sample config file. Closes: #55374
+  * Made file mtimes of 0 not confuse the methods If-Modifed-Since check. 
+    Closes: #55991
   
  -- Ben Gertzfield <che@debian.org>  Fri, 14 Jan 2000 08:04:15 -0800
  
index 93a0f1e4455d5b9d368b0bb7dbe45118939a9b4a..3fbab73cfb3292b502fa67859a6ac34f711675ee 100755 (executable)
@@ -39,6 +39,7 @@ yesno() {
        echo $ans | tr YN yn
 }
 
+OLDLS=`ls -ld $ARCHIVES`
 if [ x$WAIT = "xyes" ]; then
    $APTGET $OPTS -d dselect-upgrade
    echo "Press enter to continue." && read RES
@@ -61,6 +62,11 @@ if [ $RES -eq 0 ]; then
         -eq 0 ]; then
       exit 0
    fi
+
+   NEWLS=`ls -ld $ARCHIVES`
+   if [ "x$OLDLS" == "x$NEWLS" ]; then
+      exit 0
+   fi
    
    # Check the cleaning mode
    case `echo $CLEAN | tr '[:upper:]' '[:lower:]'` in
index 86055d0a1cd441a65b7d4ba76e1b45408c9013d0..8386d9000ccb8509b099c54d30c00c75808bf96f 100755 (executable)
@@ -269,7 +269,7 @@ sub main {
     print "-" x 72, "\n";
     &print_config('Config' => \@Oldconfig);
     print "-" x 72, "\n";
-    print "$boldon Do you wish to change it?[y/N]$boldoff ";
+    print "$boldon Do you wish to change (overwrite) it?[y/N]$boldoff ";
     my $answer = <STDIN>;
     chomp ($answer);
     $answer =~ s/\s+/ /og;
index f2bcf371a1fa6e1386fbf9a1bcb6b5118a972439..298f0660899039eab867a011ae4c064761a711a6 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
-// $Id: file.cc,v 1.7 1999/01/18 06:20:08 jgg Exp $
+// $Id: file.cc,v 1.8 2000/01/27 04:15:10 jgg Exp $
 /* ######################################################################
 
    File URI method for APT
@@ -48,7 +48,7 @@ bool FileMethod::Fetch(FetchItem *Itm)
       Res.Filename = File;
       Res.LastModified = Buf.st_mtime;
       Res.IMSHit = false;
-      if (Itm->LastModified == Buf.st_mtime)
+      if (Itm->LastModified == Buf.st_mtime && Itm->LastModified != 0)
         Res.IMSHit = true;
    }
    
@@ -64,7 +64,7 @@ bool FileMethod::Fetch(FetchItem *Itm)
         AltRes.Filename = File;
         AltRes.LastModified = Buf.st_mtime;
         AltRes.IMSHit = false;
-        if (Itm->LastModified == Buf.st_mtime)
+        if (Itm->LastModified == Buf.st_mtime && Itm->LastModified != 0)
            AltRes.IMSHit = true;
         
         URIDone(Res,&AltRes);