Quellcode durchsuchen

merged from bzr.debian.net

Michael Vogt vor 18 Jahren
Ursprung
Commit
f00d26304c
52 geänderte Dateien mit 79215 neuen und 78803 gelöschten Zeilen
  1. 2 2
      apt-pkg/algorithms.cc
  2. 6 1
      apt-pkg/contrib/configuration.cc
  3. 21 8
      cmdline/apt-get.cc
  4. 2 2
      cmdline/apt-key
  5. 3 0
      debian/apt.cron.daily
  6. 22 1
      debian/changelog
  7. 13 0
      doc/apt.conf.5.xml
  8. 1 0
      methods/gpgv.cc
  9. 26 0
      po/ChangeLog
  10. 418 495
      po/apt-all.pot
  11. 1733 1730
      po/ar.po
  12. 2248 2222
      po/bg.po
  13. 1532 1529
      po/bs.po
  14. 2062 2037
      po/ca.po
  15. 2022 1998
      po/cs.po
  16. 2103 2088
      po/cy.po
  17. 2053 2073
      po/da.po
  18. 2255 2231
      po/de.po
  19. 2071 2103
      po/dz.po
  20. 2251 2226
      po/el.po
  21. 2031 2007
      po/en_GB.po
  22. 2069 2086
      po/es.po
  23. 238 210
      po/eu.po
  24. 2040 2014
      po/fi.po
  25. 235 263
      po/fr.po
  26. 234 210
      po/gl.po
  27. 1529 1527
      po/he.po
  28. 2032 2008
      po/hu.po
  29. 2075 2051
      po/it.po
  30. 2035 2053
      po/ja.po
  31. 2018 2050
      po/km.po
  32. 232 210
      po/ko.po
  33. 1550 1548
      po/ku.po
  34. 2048 2124
      po/mr.po
  35. 2036 2013
      po/nb.po
  36. 2039 2071
      po/ne.po
  37. 2252 2228
      po/nl.po
  38. 2082 2060
      po/nn.po
  39. 2065 2039
      po/pl.po
  40. 2052 2027
      po/pt.po
  41. 2073 2047
      po/pt_BR.po
  42. 2055 2030
      po/ro.po
  43. 2248 2222
      po/ru.po
  44. 2031 2005
      po/sk.po
  45. 2260 2235
      po/sl.po
  46. 2058 2029
      po/sv.po
  47. 2009 2026
      po/th.po
  48. 2167 2141
      po/tl.po
  49. 2254 2230
      po/uk.po
  50. 2261 2278
      po/vi.po
  51. 2031 2007
      po/zh_CN.po
  52. 2032 2008
      po/zh_TW.po

+ 2 - 2
apt-pkg/algorithms.cc

@@ -1261,8 +1261,8 @@ void pkgProblemResolver::InstallProtect()
 	    Cache.MarkDelete(I);
 	 else 
 	 {
-	    // preserver the information if the package was auto
-	    // or manual installed
+	    // preserve the information whether the package was auto
+	    // or manually installed
 	    bool autoInst = (Cache[I].Flags & pkgCache::Flag::Auto);
 	    Cache.MarkInstall(I, false, 0, !autoInst);
 	 }

+ 6 - 1
apt-pkg/contrib/configuration.cc

@@ -173,6 +173,11 @@ string Configuration::Find(const char *Name,const char *Default) const
  */
 string Configuration::FindFile(const char *Name,const char *Default) const
 {
+   const Item *RootItem = Lookup("RootDir");
+   std::string rootDir =  (RootItem == 0) ? "" : RootItem->Value;
+   if(rootDir.size() > 0 && rootDir[rootDir.size() - 1] != '/')
+     rootDir.push_back('/');
+
    const Item *Itm = Lookup(Name);
    if (Itm == 0 || Itm->Value.empty() == true)
    {
@@ -204,7 +209,7 @@ string Configuration::FindFile(const char *Name,const char *Default) const
       Itm = Itm->Parent;
    }
 
-   return val;
+   return rootDir + val;
 }
 									/*}}}*/
 // Configuration::FindDir - Find a directory name			/*{{{*/

+ 21 - 8
cmdline/apt-get.cc

@@ -53,6 +53,7 @@
 #include <termios.h>
 #include <sys/ioctl.h>
 #include <sys/stat.h>
+#include <sys/statfs.h>
 #include <sys/statvfs.h>
 #include <signal.h>
 #include <unistd.h>
@@ -63,6 +64,8 @@
 #include <sstream>
 									/*}}}*/
 
+#define RAMFS_MAGIC     0x858458f6
+
 using namespace std;
 
 ostream c0out(0);
@@ -835,16 +838,16 @@ bool InstallPackages(CacheFile &Cache,bool ShwKept,bool Ask = true,
    if (DebBytes != FetchBytes)
       ioprintf(c1out,_("Need to get %sB/%sB of archives.\n"),
 	       SizeToStr(FetchBytes).c_str(),SizeToStr(DebBytes).c_str());
-   else
+   else if (DebBytes != 0)
       ioprintf(c1out,_("Need to get %sB of archives.\n"),
 	       SizeToStr(DebBytes).c_str());
 
    // Size delta
    if (Cache->UsrSize() >= 0)
-      ioprintf(c1out,_("After unpacking %sB of additional disk space will be used.\n"),
+      ioprintf(c1out,_("After this operation, %sB of additional disk space will be used.\n"),
 	       SizeToStr(Cache->UsrSize()).c_str());
    else
-      ioprintf(c1out,_("After unpacking %sB disk space will be freed.\n"),
+      ioprintf(c1out,_("After this operation, %sB disk space will be freed.\n"),
 	       SizeToStr(-1*Cache->UsrSize()).c_str());
 
    if (_error->PendingError() == true)
@@ -861,8 +864,13 @@ bool InstallPackages(CacheFile &Cache,bool ShwKept,bool Ask = true,
 	 return _error->Errno("statvfs",_("Couldn't determine free space in %s"),
 			      OutputDir.c_str());
       if (unsigned(Buf.f_bfree) < (FetchBytes - FetchPBytes)/Buf.f_bsize)
-	 return _error->Error(_("You don't have enough free space in %s."),
-			      OutputDir.c_str());
+      {
+         struct statfs Stat;
+         if (statfs(OutputDir.c_str(),&Stat) != 0 ||
+			 unsigned(Stat.f_type) != RAMFS_MAGIC)
+            return _error->Error(_("You don't have enough free space in %s."),
+                OutputDir.c_str());
+      }
    }
    
    // Fail safe check
@@ -1711,7 +1719,7 @@ bool DoInstall(CommandLine &CmdL)
 	       (Cache[Pkg].Flags & pkgCache::Flag::Auto) &&
 	       _config->FindB("APT::Get::ReInstall",false) == false)
 	    {
-	       ioprintf(c1out,_("%s set to manual installed.\n"),
+	       ioprintf(c1out,_("%s set to manually installed.\n"),
 			Pkg.Name());
 	       Cache->MarkAuto(Pkg,false);
 	       AutoMarkChanged++;
@@ -2188,8 +2196,13 @@ bool DoSource(CommandLine &CmdL)
       return _error->Errno("statvfs",_("Couldn't determine free space in %s"),
 			   OutputDir.c_str());
    if (unsigned(Buf.f_bfree) < (FetchBytes - FetchPBytes)/Buf.f_bsize)
-      return _error->Error(_("You don't have enough free space in %s"),
-			   OutputDir.c_str());
+     {
+       struct statfs Stat;
+       if (statfs(OutputDir.c_str(),&Stat) != 0 || 
+           unsigned(Stat.f_type) != RAMFS_MAGIC) 
+          return _error->Error(_("You don't have enough free space in %s"),
+              OutputDir.c_str());
+      }
    
    // Number of bytes
    if (DebBytes != FetchBytes)

+ 2 - 2
cmdline/apt-key

@@ -5,7 +5,7 @@ set -e
 # We don't use a secret keyring, of course, but gpg panics and
 # implodes if there isn't one available
 
-GPG_CMD="gpg --no-options --no-default-keyring --secret-keyring /etc/apt/secring.gpg --trustdb-name /etc/apt/trustdb.gpg"
+GPG_CMD="gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /etc/apt/secring.gpg --trustdb-name /etc/apt/trustdb.gpg"
 GPG="$GPG_CMD --keyring /etc/apt/trusted.gpg"
 
 
@@ -21,7 +21,7 @@ update() {
     fi
 
     # add new keys
-    $GPG_CMD --quiet --batch --keyring $ARCHIVE_KEYRING --export | $GPG --ignore-time-conflict --import
+    $GPG_CMD --quiet --batch --keyring $ARCHIVE_KEYRING --export | $GPG --import
 
     # remove no-longer used keys
     keys=`$GPG_CMD --keyring $REMOVED_KEYS --with-colons --list-keys | grep ^pub | cut -d: -f5`

+ 3 - 0
debian/apt.cron.daily

@@ -147,6 +147,9 @@ check_size_constraints()
     fi
 }
 
+if ! which apt-config >/dev/null; then
+	exit 0
+fi
 
 UpdateInterval=0
 DownloadUpgradeableInterval=0

+ 22 - 1
debian/changelog

@@ -14,9 +14,21 @@ apt (0.7.10) UNRELEASED; urgency=low
     closes: #452862.
   * Applied patch from Alexander Winston <alexander.winston@comcast.net>
     to use 'min' as symbol for minute, closes: #219034.
+  * Applied patch from Amos Waterland <apw@us.ibm.com> to allow apt to
+    work properly in initramfs, closes: #448316.
+  * Applied patch from Robert Millan <rmh@aybabtu.com> to make apt-key and
+    apt-get to ignore time conflicts, closes: #451328.
+  * Applied patch from Peter Eisentraut <peter_e@gmx.net> to fix a
+    grammatical error ("manual installed" -> "manually installed"),
+    closes: #438136.
+  * Fix cron.daily job to not call fail if apt isn't installed, closes:
+    #443286.
 
   [ Program translations ]
     - Basque updated. Closes: #453088
+    - Vietnamese updated. Closes: #453774
+    - Japanese updated. Closes: #456909
+    - French updated.
 
   [ Michael Vogt ]
   * debian/rules
@@ -37,8 +49,17 @@ apt (0.7.10) UNRELEASED; urgency=low
     - support lzma data members
   * ftparchive/multicompress.cc:
     - support lzma output
+  
+  [ Daniel Burrows ]
+  * apt-pkg/contrib/configuration.cc:
+    - if RootDir is set, then FindFile and FindDir will return paths
+      relative to the directory stored in RootDir, closes: #456457.
+
+  [ Christian Perrier ]
+  * Fix wording for "After unpacking...". Thans to Michael Gilbert
+    for the patch. Closes: #260825
 
- -- Otavio Salvador <otavio@ossystems.com.br>  Sat, 08 Dec 2007 12:13:58 -0200
+ -- Christian Perrier <bubulle@debian.org>  Mon, 17 Dec 2007 10:10:17 +0530
 
 apt (0.7.9) unstable; urgency=low
 

+ 13 - 0
doc/apt.conf.5.xml

@@ -295,6 +295,19 @@ DPkg::Pre-Install-Pkgs {"/usr/sbin/dpkg-preconfigure --apt";};
    <literal>dpkg</literal>, <literal>apt-get</literal> <literal>dpkg-source</literal> 
    <literal>dpkg-buildpackage</literal> and <literal>apt-cache</literal> specify the location
    of the respective programs.</para>
+
+   <para>
+     The configuration item <literal>RootDir</literal> has a special
+     meaning.  If set, all paths in <literal>Dir::</literal> will be
+     relative to <literal>RootDir</literal>, <emphasis>even paths that
+     are specified absolutely</emphasis>.  So, for instance, if
+     <literal>RootDir</literal> is set to
+     <filename>/tmp/staging</filename> and
+     <literal>Dir::State::status</literal> is set to
+     <filename>/var/lib/dpkg/status</filename>, then the status file
+     will be looked up in
+     <filename>/tmp/staging/var/lib/dpkg/status</filename>.
+   </para>
  </refsect1>
  
  <refsect1><title>APT in DSelect</title>

+ 1 - 0
methods/gpgv.cc

@@ -83,6 +83,7 @@ string GPGVMethod::VerifyGetSigners(const char *file, const char *outfile,
       Args[i++] = gpgvpath.c_str();
       Args[i++] = "--status-fd";
       Args[i++] = "3";
+      Args[i++] = "--ignore-time-conflict";
       Args[i++] = "--keyring";
       Args[i++] = pubringpath.c_str();
 

+ 26 - 0
po/ChangeLog

@@ -1,3 +1,29 @@
+2007-12-18  Kenshi Muto  <kmuto@debian.org>
+
+	* ja.po: Updated to 536t. Closes: #456909
+
+2007-12-17  Christian Perrier  <bubulle@debian.org>
+
+	* fr.po: completed to 536t.
+
+2007-12-17  Christian Perrier  <bubulle@debian.org>
+
+	* Update all PO files and apt-all.pot. 536 strings.
+	  Formerly complete PO files are now 530t6f
+
+2007-12-15  Christian Perrier  <bubulle@debian.org>
+
+	* fr.po: completed to 542t.
+
+2007-12-15  Christian Perrier  <bubulle@debian.org>
+
+	* Update all PO files and apt-all.pot. 542 strings.
+	  Formerly complete PO files are now 536t6f
+
+2007-12-01  Clytie Siddall  <clytie@riverland.net.au>
+
+	* vi.po: updated to 536t.
+
 2007-11-27  Piarres Beobide  <pi@beobide.net>
 
 	* eu.po: updated to 536t.

Datei-Diff unterdrückt, da er zu groß ist
+ 418 - 495
po/apt-all.pot


Datei-Diff unterdrückt, da er zu groß ist
+ 1733 - 1730
po/ar.po


Datei-Diff unterdrückt, da er zu groß ist
+ 2248 - 2222
po/bg.po


Datei-Diff unterdrückt, da er zu groß ist
+ 1532 - 1529
po/bs.po


Datei-Diff unterdrückt, da er zu groß ist
+ 2062 - 2037
po/ca.po


Datei-Diff unterdrückt, da er zu groß ist
+ 2022 - 1998
po/cs.po


Datei-Diff unterdrückt, da er zu groß ist
+ 2103 - 2088
po/cy.po


Datei-Diff unterdrückt, da er zu groß ist
+ 2053 - 2073
po/da.po


Datei-Diff unterdrückt, da er zu groß ist
+ 2255 - 2231
po/de.po


Datei-Diff unterdrückt, da er zu groß ist
+ 2071 - 2103
po/dz.po


Datei-Diff unterdrückt, da er zu groß ist
+ 2251 - 2226
po/el.po


Datei-Diff unterdrückt, da er zu groß ist
+ 2031 - 2007
po/en_GB.po


Datei-Diff unterdrückt, da er zu groß ist
+ 2069 - 2086
po/es.po


Datei-Diff unterdrückt, da er zu groß ist
+ 238 - 210
po/eu.po


Datei-Diff unterdrückt, da er zu groß ist
+ 2040 - 2014
po/fi.po


Datei-Diff unterdrückt, da er zu groß ist
+ 235 - 263
po/fr.po


Datei-Diff unterdrückt, da er zu groß ist
+ 234 - 210
po/gl.po


Datei-Diff unterdrückt, da er zu groß ist
+ 1529 - 1527
po/he.po


Datei-Diff unterdrückt, da er zu groß ist
+ 2032 - 2008
po/hu.po


Datei-Diff unterdrückt, da er zu groß ist
+ 2075 - 2051
po/it.po


Datei-Diff unterdrückt, da er zu groß ist
+ 2035 - 2053
po/ja.po


Datei-Diff unterdrückt, da er zu groß ist
+ 2018 - 2050
po/km.po


Datei-Diff unterdrückt, da er zu groß ist
+ 232 - 210
po/ko.po


Datei-Diff unterdrückt, da er zu groß ist
+ 1550 - 1548
po/ku.po


Datei-Diff unterdrückt, da er zu groß ist
+ 2048 - 2124
po/mr.po


Datei-Diff unterdrückt, da er zu groß ist
+ 2036 - 2013
po/nb.po


Datei-Diff unterdrückt, da er zu groß ist
+ 2039 - 2071
po/ne.po


Datei-Diff unterdrückt, da er zu groß ist
+ 2252 - 2228
po/nl.po


Datei-Diff unterdrückt, da er zu groß ist
+ 2082 - 2060
po/nn.po


Datei-Diff unterdrückt, da er zu groß ist
+ 2065 - 2039
po/pl.po


Datei-Diff unterdrückt, da er zu groß ist
+ 2052 - 2027
po/pt.po


Datei-Diff unterdrückt, da er zu groß ist
+ 2073 - 2047
po/pt_BR.po


Datei-Diff unterdrückt, da er zu groß ist
+ 2055 - 2030
po/ro.po


Datei-Diff unterdrückt, da er zu groß ist
+ 2248 - 2222
po/ru.po


Datei-Diff unterdrückt, da er zu groß ist
+ 2031 - 2005
po/sk.po


Datei-Diff unterdrückt, da er zu groß ist
+ 2260 - 2235
po/sl.po


Datei-Diff unterdrückt, da er zu groß ist
+ 2058 - 2029
po/sv.po


Datei-Diff unterdrückt, da er zu groß ist
+ 2009 - 2026
po/th.po


Datei-Diff unterdrückt, da er zu groß ist
+ 2167 - 2141
po/tl.po


Datei-Diff unterdrückt, da er zu groß ist
+ 2254 - 2230
po/uk.po


Datei-Diff unterdrückt, da er zu groß ist
+ 2261 - 2278
po/vi.po


Datei-Diff unterdrückt, da er zu groß ist
+ 2031 - 2007
po/zh_CN.po


Datei-Diff unterdrückt, da er zu groß ist
+ 2032 - 2008
po/zh_TW.po