Parcourir la source

More touch ups
Author: jgg
Date: 1999-11-28 01:03:28 GMT
More touch ups

Arch Librarian il y a 22 ans
Parent
commit
10bb1f5f24
3 fichiers modifiés avec 22 ajouts et 12 suppressions
  1. 15 11
      cmdline/apt-get.cc
  2. 1 0
      debian/changelog
  3. 6 1
      doc/apt.conf.5.yo

+ 15 - 11
cmdline/apt-get.cc

@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // -*- mode: cpp; mode: fold -*-
 // Description								/*{{{*/
 // Description								/*{{{*/
-// $Id: apt-get.cc,v 1.90 1999/11/26 00:05:55 jgg Exp $
+// $Id: apt-get.cc,v 1.91 1999/11/28 01:03:28 jgg Exp $
 /* ######################################################################
 /* ######################################################################
    
    
    apt-get - Cover for dpkg
    apt-get - Cover for dpkg
@@ -617,6 +617,15 @@ bool InstallPackages(CacheFile &Cache,bool ShwKept,bool Ask = true,bool Saftey =
       c1out << SizeToStr(DebBytes) << 'B';
       c1out << SizeToStr(DebBytes) << 'B';
       
       
    c1out << " of archives. After unpacking ";
    c1out << " of archives. After unpacking ";
+   
+   // Size delta
+   if (Cache->UsrSize() >= 0)
+      c1out << SizeToStr(Cache->UsrSize()) << "B will be used." << endl;
+   else
+      c1out << SizeToStr(-1*Cache->UsrSize()) << "B will be freed." << endl;
+
+   if (_error->PendingError() == true)
+      return false;
 
 
    // Check for enough free space
    // Check for enough free space
    struct statfs Buf;
    struct statfs Buf;
@@ -627,15 +636,6 @@ bool InstallPackages(CacheFile &Cache,bool ShwKept,bool Ask = true,bool Saftey =
    if (unsigned(Buf.f_bfree) < (FetchBytes - FetchPBytes)/Buf.f_bsize)
    if (unsigned(Buf.f_bfree) < (FetchBytes - FetchPBytes)/Buf.f_bsize)
       return _error->Error("Sorry, you don't have enough free space in %s to hold all the .debs.",
       return _error->Error("Sorry, you don't have enough free space in %s to hold all the .debs.",
 			   OutputDir.c_str());
 			   OutputDir.c_str());
-   
-   // Size delta
-   if (Cache->UsrSize() >= 0)
-      c1out << SizeToStr(Cache->UsrSize()) << "B will be used." << endl;
-   else
-      c1out << SizeToStr(-1*Cache->UsrSize()) << "B will be freed." << endl;
-
-   if (_error->PendingError() == true)
-      return false;
 
 
    // Fail safe check
    // Fail safe check
    if (_config->FindI("quiet",0) >= 2 ||
    if (_config->FindI("quiet",0) >= 2 ||
@@ -779,7 +779,7 @@ bool TryToInstall(pkgCache::PkgIterator Pkg,pkgDepCache &Cache,
        Pkg.ProvidesList()->NextProvides == 0)
        Pkg.ProvidesList()->NextProvides == 0)
    {
    {
       pkgCache::PkgIterator Tmp = Pkg.ProvidesList().OwnerPkg();
       pkgCache::PkgIterator Tmp = Pkg.ProvidesList().OwnerPkg();
-      c1out << "Note, installing " << Tmp.Name() << " instead of " << Pkg.Name() << endl;
+      c1out << "Note, selecting " << Tmp.Name() << " instead of " << Pkg.Name() << endl;
       Pkg = Tmp;
       Pkg = Tmp;
    }
    }
    
    
@@ -795,7 +795,11 @@ bool TryToInstall(pkgCache::PkgIterator Pkg,pkgDepCache &Cache,
    // Check if there is something at all to install
    // Check if there is something at all to install
    pkgDepCache::StateCache &State = Cache[Pkg];
    pkgDepCache::StateCache &State = Cache[Pkg];
    if (Remove == true && Pkg->CurrentVer == 0)
    if (Remove == true && Pkg->CurrentVer == 0)
+   {
+      if (AllowFail == false)
+	 return false;
       return _error->Error("Package %s is not installed",Pkg.Name());
       return _error->Error("Package %s is not installed",Pkg.Name());
+   }
    
    
    if (State.CandidateVer == 0 && Remove == false)
    if (State.CandidateVer == 0 && Remove == false)
    {
    {

+ 1 - 0
debian/changelog

@@ -7,6 +7,7 @@ apt (0.3.14.1) unstable; urgency=low
   * Problem with Protected packages and the new OR code.
   * Problem with Protected packages and the new OR code.
   * /usr/share/doc stuff. Closes: #51017, #50228, #51141
   * /usr/share/doc stuff. Closes: #51017, #50228, #51141
   * Remove doesn't require a package to be installable. Closes: #51175
   * Remove doesn't require a package to be installable. Closes: #51175
+  * FTP proxy touch ups in the mabn page. Closes: #51315, #51314
   
   
   -- Ben Gertzfield <che@debian.org>  Sun,  7 Nov 1999 20:21:25 -0800
   -- Ben Gertzfield <che@debian.org>  Sun,  7 Nov 1999 20:21:25 -0800
   
   

+ 6 - 1
doc/apt.conf.5.yo

@@ -137,7 +137,7 @@ outstanding requests APT should send.
 
 
 dit(bf(ftp))
 dit(bf(ftp))
 FTP URis; ftp::Proxy is the default proxy server to use. It is in the 
 FTP URis; ftp::Proxy is the default proxy server to use. It is in the 
-standard form of em(http://[[user][:pass]@]host[:port]/) and is overriden
+standard form of em(ftp://[[user][:pass]@]host[:port]/) and is overriden
 by the ftp_proxy environment variable. To use a ftp proxy you will have to
 by the ftp_proxy environment variable. To use a ftp proxy you will have to
 set the ftp::ProxyLogin script in the configuration file. This entry 
 set the ftp::ProxyLogin script in the configuration file. This entry 
 specifies the commands to send to tell the proxy server what to connect
 specifies the commands to send to tell the proxy server what to connect
@@ -152,6 +152,11 @@ situations require that passive mode be disabled and port mode ftp used
 instead. This can be done globally, for connections that go through a proxy
 instead. This can be done globally, for connections that go through a proxy
 or for a specific host (See the sample config file for examples)
 or for a specific host (See the sample config file for examples)
 
 
+It is possible to proxy FTP over HTTP by setting the em(ftp_proxy)
+environment variable to a http url - see the discussion of the http method
+above for syntax. You cannot set this in the configuration file and it is
+not recommended to use FTP over HTTP due to its low efficiency.
+
 dit(bf(cdrom))
 dit(bf(cdrom))
 CDROM URIs; the only setting for CDROM URIs is the mount point, cdrom::Mount
 CDROM URIs; the only setting for CDROM URIs is the mount point, cdrom::Mount
 which must be the mount point for the CDROM drive as specified in /etc/fstab.
 which must be the mount point for the CDROM drive as specified in /etc/fstab.