// -*- 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
// Inquire functions
virtual string MD5Sum() {return string();};
-
+ pkgAcquire *GetOwner() {return Owner;};
+
Item(pkgAcquire *Owner);
virtual ~Item();
};
// -*- 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
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);
_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)
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);
// -*- 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
// AcquireStatus::pkgAcquireStatus - Constructor /*{{{*/
// ---------------------------------------------------------------------
/* */
-pkgAcquireStatus::pkgAcquireStatus()
+pkgAcquireStatus::pkgAcquireStatus() : Update(true), MorePulses(false)
{
Start();
}
// -*- 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
public:
bool Update;
-
+ bool MorePulses;
+
// Called by items when they have finished a real download
virtual void Fetched(unsigned long Size,unsigned long ResumePoint);
* 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
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
-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
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;
// -*- 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
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;
}
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);