David Kalnischkies лет назад: 15
Родитель
Сommit
2faaf8bea8

+ 26 - 2
apt-pkg/contrib/fileutl.cc

@@ -915,11 +915,35 @@ unsigned long FileFd::Tell()
 /* */
 /* */
 unsigned long FileFd::Size()
 unsigned long FileFd::Size()
 {
 {
-   //TODO: For gz, do we need the actual file size here or the uncompressed length?
    struct stat Buf;
    struct stat Buf;
+   unsigned long size;
+   off_t orig_pos;
+
    if (fstat(iFd,&Buf) != 0)
    if (fstat(iFd,&Buf) != 0)
       return _error->Errno("fstat","Unable to determine the file size");
       return _error->Errno("fstat","Unable to determine the file size");
-   return Buf.st_size;
+   size = Buf.st_size;
+
+   // only check gzsize if we are actually a gzip file, just checking for
+   // "gz" is not sufficient as uncompressed files will be opened with
+   // gzopen in "direct" mode as well
+   if (gz && !gzdirect(gz) && size > 0)
+   {
+       /* unfortunately zlib.h doesn't provide a gzsize(), so we have to do
+	* this ourselves; the original (uncompressed) file size is the last 32
+	* bits of the file */
+       orig_pos = lseek(iFd, 0, SEEK_CUR);
+       if (lseek(iFd, -4, SEEK_END) < 0)
+	   return _error->Errno("lseek","Unable to seek to end of gzipped file");
+       if (read(iFd, &size, 4) != 4)
+	   return _error->Errno("read","Unable to read original size of gzipped file");
+       size &= 0xFFFFFFFF;
+
+       if (lseek(iFd, orig_pos, SEEK_SET) < 0)
+	   return _error->Errno("lseek","Unable to seek in gzipped file");
+       return size;
+   }
+
+   return size;
 }
 }
 									/*}}}*/
 									/*}}}*/
 // FileFd::Close - Close the file if the close flag is set		/*{{{*/
 // FileFd::Close - Close the file if the close flag is set		/*{{{*/

+ 13 - 9
apt-pkg/deb/debindexfile.cc

@@ -149,10 +149,11 @@ bool debSourcesIndex::Exists() const
 /* */
 /* */
 unsigned long debSourcesIndex::Size() const
 unsigned long debSourcesIndex::Size() const
 {
 {
-   struct stat S;
-   if (stat(IndexFile("Sources").c_str(),&S) != 0)
+   FileFd f = FileFd (IndexFile("Sources"), FileFd::ReadOnlyGzip);
+
+   if (f.Failed())
       return 0;
       return 0;
-   return S.st_size;
+   return f.Size();
 }
 }
 									/*}}}*/
 									/*}}}*/
 
 
@@ -268,10 +269,11 @@ bool debPackagesIndex::Exists() const
 /* This is really only used for progress reporting. */
 /* This is really only used for progress reporting. */
 unsigned long debPackagesIndex::Size() const
 unsigned long debPackagesIndex::Size() const
 {
 {
-   struct stat S;
-   if (stat(IndexFile("Packages").c_str(),&S) != 0)
+   FileFd f = FileFd (IndexFile("Packages"), FileFd::ReadOnlyGzip);
+
+   if (f.Failed())
       return 0;
       return 0;
-   return S.st_size;
+   return f.Size();
 }
 }
 									/*}}}*/
 									/*}}}*/
 // PackagesIndex::Merge - Load the index file into a cache		/*{{{*/
 // PackagesIndex::Merge - Load the index file into a cache		/*{{{*/
@@ -458,10 +460,12 @@ bool debTranslationsIndex::Exists() const
 /* This is really only used for progress reporting. */
 /* This is really only used for progress reporting. */
 unsigned long debTranslationsIndex::Size() const
 unsigned long debTranslationsIndex::Size() const
 {
 {
-   struct stat S;
-   if (stat(IndexFile(Language).c_str(),&S) != 0)
+   FileFd f = FileFd (IndexFile(Language), FileFd::ReadOnlyGzip);
+
+   if (f.Failed())
       return 0;
       return 0;
-   return S.st_size;
+
+   return f.Size();
 }
 }
 									/*}}}*/
 									/*}}}*/
 // TranslationsIndex::Merge - Load the index file into a cache		/*{{{*/
 // TranslationsIndex::Merge - Load the index file into a cache		/*{{{*/

+ 2 - 2
apt-pkg/deb/debsystem.cc

@@ -164,8 +164,8 @@ bool debSystem::Initialize(Configuration &Cnf)
    /* These really should be jammed into a generic 'Local Database' engine
    /* These really should be jammed into a generic 'Local Database' engine
       which is yet to be determined. The functions in pkgcachegen should
       which is yet to be determined. The functions in pkgcachegen should
       be the only users of these */
       be the only users of these */
-   Cnf.CndSet("Dir::State::extended_states", Cnf.FindDir("Dir::State").append("extended_states"));
-   Cnf.CndSet("Dir::State::status", Cnf.FindDir("Dir", "/").append("var/lib/dpkg/status"));
+   Cnf.CndSet("Dir::State::extended_states", "extended_states");
+   Cnf.CndSet("Dir::State::status","/var/lib/dpkg/status");
    Cnf.CndSet("Dir::Bin::dpkg","/usr/bin/dpkg");
    Cnf.CndSet("Dir::Bin::dpkg","/usr/bin/dpkg");
 
 
    if (StatusFile) {
    if (StatusFile) {

+ 7 - 0
debian/apt.cron.daily

@@ -417,6 +417,13 @@ do_cache_backup $BackupArchiveInterval
 # mirrors at the same time
 # mirrors at the same time
 random_sleep
 random_sleep
 
 
+# include default system language so that "apt-get update" will
+# fetch the right translated package descriptions
+if [ -r /etc/default/locale ]; then
+    . /etc/default/locale
+    export LANG LANGUAGE LC_MESSAGES LC_ALL
+fi
+
 # update package lists
 # update package lists
 UPDATED=0
 UPDATED=0
 UPDATE_STAMP=/var/lib/apt/periodic/update-stamp
 UPDATE_STAMP=/var/lib/apt/periodic/update-stamp

+ 20 - 0
debian/changelog

@@ -5,6 +5,26 @@ apt (0.8.7) UNRELEASED; urgency=low
   * Another typo fixed in French ("Anfin"). Thanks to bubulle
   * Another typo fixed in French ("Anfin"). Thanks to bubulle
   * Wrong translation for "showauto" fixed. Thanks to Raphaël Hertzog
   * Wrong translation for "showauto" fixed. Thanks to Raphaël Hertzog
     Closes: #599265
     Closes: #599265
+  
+  [ Michael Vogt ]
+  * debian/apt.cron.daily:
+    - source /etc/default/locale (if available) so that the 
+      apt-get update cron job fetches the right translated package
+      descriptions
+  * fix test failure on amd64
+  * apt-pkg/deb/debsystem.cc:
+    - fix issues with dir::state::status and dir::state::extended_states
+      when alternative rootdirs are used
+
+  [ Martin Pitt ]
+  * apt-pkg/deb/debindexfile.cc:
+    - Use FileFd::Size() instead of stat()ing the sources/binary/translations
+      indexes directly, so that we have transparent handling of gzipped
+      indexes.
+  * apt-pkg/contrib/fileutl.cc:
+    - Fix FileFd::Size() for gzipped files to give the size of the
+      uncompressed data. This fixes cache building progress going way
+      over 100%.
 
 
   [ David Kalnischkies ]
   [ David Kalnischkies ]
   * apt-pkg/deb/deblistparser.cc:
   * apt-pkg/deb/deblistparser.cc:

+ 1 - 0
doc/examples/configure-index

@@ -433,6 +433,7 @@ Debug
   Acquire::Http "false";   // Show http command traffic
   Acquire::Http "false";   // Show http command traffic
   Acquire::Https "false";   // Show https debug
   Acquire::Https "false";   // Show https debug
   Acquire::gpgv "false";   // Show the gpgv traffic
   Acquire::gpgv "false";   // Show the gpgv traffic
+  Acquire::cdrom "false";   // Show cdrom debug output
   aptcdrom "false";        // Show found package files
   aptcdrom "false";        // Show found package files
   IdentCdrom "false";
   IdentCdrom "false";
   acquire::netrc "false";  // netrc parser
   acquire::netrc "false";  // netrc parser

+ 54 - 32
doc/po/fr.po

@@ -1154,7 +1154,7 @@ msgstr ""
 "<!ENTITY oldstable-codename \"etch\"> <!ENTITY stable-codename \"lenny\"> <!"
 "<!ENTITY oldstable-codename \"etch\"> <!ENTITY stable-codename \"lenny\"> <!"
 "ENTITY testing-codename \"squeeze\">"
 "ENTITY testing-codename \"squeeze\">"
 
 
-#.  The last update date
+#.  The last update date 
 #. type: Content of: <refentry><refentryinfo>
 #. type: Content of: <refentry><refentryinfo>
 #: apt-cache.8.xml:13 apt-config.8.xml:13 apt-extracttemplates.1.xml:13
 #: apt-cache.8.xml:13 apt-config.8.xml:13 apt-extracttemplates.1.xml:13
 #: apt-sortpkgs.1.xml:13 sources.list.5.xml:13
 #: apt-sortpkgs.1.xml:13 sources.list.5.xml:13
@@ -2586,7 +2586,7 @@ msgstr ""
 "<command>apt-extracttemplates</command> retourne zéro si tout se passe bien, "
 "<command>apt-extracttemplates</command> retourne zéro si tout se passe bien, "
 "le nombre 100 en cas d'erreur."
 "le nombre 100 en cas d'erreur."
 
 
-#.  The last update date
+#.  The last update date 
 #. type: Content of: <refentry><refentryinfo>
 #. type: Content of: <refentry><refentryinfo>
 #: apt-ftparchive.1.xml:13
 #: apt-ftparchive.1.xml:13
 msgid ""
 msgid ""
@@ -2712,7 +2712,8 @@ msgstr ""
 
 
 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
 #: apt-ftparchive.1.xml:83 apt-ftparchive.1.xml:107
 #: apt-ftparchive.1.xml:83 apt-ftparchive.1.xml:107
-msgid "The option <option>--db</option> can be used to specify a binary caching DB."
+msgid ""
+"The option <option>--db</option> can be used to specify a binary caching DB."
 msgstr ""
 msgstr ""
 "On peut se servir de l'option <option>--db</option> pour demander un cache "
 "On peut se servir de l'option <option>--db</option> pour demander un cache "
 "binaire."
 "binaire."
@@ -2869,8 +2870,10 @@ msgstr ""
 
 
 #. type: Content of: <refentry><refsect1><para>
 #. type: Content of: <refentry><refsect1><para>
 #: apt-ftparchive.1.xml:157
 #: apt-ftparchive.1.xml:157
-msgid "The generate configuration has 4 separate sections, each described below."
-msgstr "Ce fichier de configuration possède quatre sections, décrites ci-dessous."
+msgid ""
+"The generate configuration has 4 separate sections, each described below."
+msgstr ""
+"Ce fichier de configuration possède quatre sections, décrites ci-dessous."
 
 
 #. type: Content of: <refentry><refsect1><refsect2><title>
 #. type: Content of: <refentry><refsect1><refsect2><title>
 #: apt-ftparchive.1.xml:159
 #: apt-ftparchive.1.xml:159
@@ -3828,7 +3831,7 @@ msgstr ""
 "<command>apt-ftparchive</command> retourne zéro si tout se passe bien, le "
 "<command>apt-ftparchive</command> retourne zéro si tout se passe bien, le "
 "nombre 100 en cas d'erreur."
 "nombre 100 en cas d'erreur."
 
 
-#.  The last update date
+#.  The last update date 
 #. type: Content of: <refentry><refentryinfo>
 #. type: Content of: <refentry><refentryinfo>
 #: apt-get.8.xml:13
 #: apt-get.8.xml:13
 msgid ""
 msgid ""
@@ -3846,7 +3849,8 @@ msgstr "apt-get"
 #. type: Content of: <refentry><refnamediv><refpurpose>
 #. type: Content of: <refentry><refnamediv><refpurpose>
 #: apt-get.8.xml:30
 #: apt-get.8.xml:30
 msgid "APT package handling utility -- command-line interface"
 msgid "APT package handling utility -- command-line interface"
-msgstr "Utilitaire APT pour la gestion des paquets -- interface en ligne de commande."
+msgstr ""
+"Utilitaire APT pour la gestion des paquets -- interface en ligne de commande."
 
 
 #. type: Content of: <refentry><refsynopsisdiv><cmdsynopsis>
 #. type: Content of: <refentry><refsynopsisdiv><cmdsynopsis>
 #: apt-get.8.xml:36
 #: apt-get.8.xml:36
@@ -5200,8 +5204,10 @@ msgstr "Trousseau des clés fiables de l'archive Debian."
 
 
 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
 #: apt-key.8.xml:166
 #: apt-key.8.xml:166
-msgid "<filename>/usr/share/keyrings/debian-archive-removed-keys.gpg</filename>"
-msgstr "<filename>/usr/share/keyrings/debian-archive-removed-keys.gpg</filename>"
+msgid ""
+"<filename>/usr/share/keyrings/debian-archive-removed-keys.gpg</filename>"
+msgstr ""
+"<filename>/usr/share/keyrings/debian-archive-removed-keys.gpg</filename>"
 
 
 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
 #: apt-key.8.xml:167
 #: apt-key.8.xml:167
@@ -5213,7 +5219,7 @@ msgstr "Trousseau des clés fiables supprimées de l'archive Debian."
 msgid "&apt-get;, &apt-secure;"
 msgid "&apt-get;, &apt-secure;"
 msgstr "&apt-get;, &apt-secure;"
 msgstr "&apt-get;, &apt-secure;"
 
 
-#.  The last update date
+#.  The last update date 
 #. type: Content of: <refentry><refentryinfo>
 #. type: Content of: <refentry><refentryinfo>
 #: apt-mark.8.xml:13
 #: apt-mark.8.xml:13
 msgid ""
 msgid ""
@@ -5318,13 +5324,15 @@ msgid ""
 "<literal>showauto</literal> is used to print a list of automatically "
 "<literal>showauto</literal> is used to print a list of automatically "
 "installed packages with each package on a new line."
 "installed packages with each package on a new line."
 msgstr ""
 msgstr ""
-"<literal>showauto</literal>, affiche les paquets installés automatiquement, un "
-"paquet par ligne."
+"<literal>showauto</literal>, affiche les paquets installés automatiquement, "
+"un paquet par ligne."
 
 
 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
 #: apt-mark.8.xml:93
 #: apt-mark.8.xml:93
-msgid "<option>-f=<filename><replaceable>FILENAME</replaceable></filename></option>"
-msgstr "<option>-f=<filename><replaceable>FICHIER</replaceable></filename></option>"
+msgid ""
+"<option>-f=<filename><replaceable>FILENAME</replaceable></filename></option>"
+msgstr ""
+"<option>-f=<filename><replaceable>FICHIER</replaceable></filename></option>"
 
 
 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
 #: apt-mark.8.xml:94
 #: apt-mark.8.xml:94
@@ -5773,7 +5781,7 @@ msgstr ""
 "<command>apt-sortpkgs</command> retourne zéro si tout se passe bien ou 100 "
 "<command>apt-sortpkgs</command> retourne zéro si tout se passe bien ou 100 "
 "en cas d'erreur."
 "en cas d'erreur."
 
 
-#.  The last update date
+#.  The last update date 
 #. type: Content of: <refentry><refentryinfo>
 #. type: Content of: <refentry><refentryinfo>
 #: apt.conf.5.xml:13
 #: apt.conf.5.xml:13
 msgid ""
 msgid ""
@@ -5851,8 +5859,10 @@ msgstr ""
 
 
 #. type: Content of: <refentry><refsect1><orderedlist><listitem><para>
 #. type: Content of: <refentry><refsect1><orderedlist><listitem><para>
 #: apt.conf.5.xml:54
 #: apt.conf.5.xml:54
-msgid "the main configuration file specified by <literal>Dir::Etc::main</literal>"
-msgstr "le fichier de configuration défini par <literal>Dir::Etc::Main</literal>"
+msgid ""
+"the main configuration file specified by <literal>Dir::Etc::main</literal>"
+msgstr ""
+"le fichier de configuration défini par <literal>Dir::Etc::Main</literal>"
 
 
 #. type: Content of: <refentry><refsect1><orderedlist><listitem><para>
 #. type: Content of: <refentry><refsect1><orderedlist><listitem><para>
 #: apt.conf.5.xml:56
 #: apt.conf.5.xml:56
@@ -7671,7 +7681,7 @@ msgstr ""
 
 
 #.  TODO: provide a
 #.  TODO: provide a
 #. 	   motivating example, except I haven't a clue why you'd want
 #. 	   motivating example, except I haven't a clue why you'd want
-#. 	   to do this.
+#. 	   to do this. 
 #. type: Content of: <refentry><refsect1><para><itemizedlist><listitem><para>
 #. type: Content of: <refentry><refsect1><para><itemizedlist><listitem><para>
 #: apt.conf.5.xml:746
 #: apt.conf.5.xml:746
 msgid ""
 msgid ""
@@ -7693,7 +7703,8 @@ msgstr "<literal>Debug::Acquire::cdrom</literal>"
 
 
 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
 #: apt.conf.5.xml:765
 #: apt.conf.5.xml:765
-msgid "Print information related to accessing <literal>cdrom://</literal> sources."
+msgid ""
+"Print information related to accessing <literal>cdrom://</literal> sources."
 msgstr ""
 msgstr ""
 "Affiche les informations concernant les sources de type <literal>cdrom://</"
 "Affiche les informations concernant les sources de type <literal>cdrom://</"
 "literal>"
 "literal>"
@@ -7706,7 +7717,8 @@ msgstr "<literal>Debug::Acquire::ftp</literal>"
 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
 #: apt.conf.5.xml:776
 #: apt.conf.5.xml:776
 msgid "Print information related to downloading packages using FTP."
 msgid "Print information related to downloading packages using FTP."
-msgstr "Affiche les informations concernant le téléchargement de paquets par FTP."
+msgstr ""
+"Affiche les informations concernant le téléchargement de paquets par FTP."
 
 
 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
 #: apt.conf.5.xml:783
 #: apt.conf.5.xml:783
@@ -7716,7 +7728,8 @@ msgstr "<literal>Debug::Acquire::http</literal>"
 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
 #: apt.conf.5.xml:787
 #: apt.conf.5.xml:787
 msgid "Print information related to downloading packages using HTTP."
 msgid "Print information related to downloading packages using HTTP."
-msgstr "Affiche les informations concernant le téléchargement de paquets par HTTP."
+msgstr ""
+"Affiche les informations concernant le téléchargement de paquets par HTTP."
 
 
 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
 #: apt.conf.5.xml:794
 #: apt.conf.5.xml:794
@@ -7877,7 +7890,8 @@ msgstr "<literal>Debug::pkgAcquire::Worker</literal>"
 
 
 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
 #: apt.conf.5.xml:916
 #: apt.conf.5.xml:916
-msgid "Log all interactions with the sub-processes that actually perform downloads."
+msgid ""
+"Log all interactions with the sub-processes that actually perform downloads."
 msgstr ""
 msgstr ""
 "Affiche toutes les interactions avec les processus enfants qui se chargent "
 "Affiche toutes les interactions avec les processus enfants qui se chargent "
 "effectivement des téléchargements."
 "effectivement des téléchargements."
@@ -8018,7 +8032,8 @@ msgstr "<literal>Debug::pkgPackageManager</literal>"
 
 
 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><listitem><para>
 #: apt.conf.5.xml:1017
 #: apt.conf.5.xml:1017
-msgid "Output status messages tracing the steps performed when invoking &dpkg;."
+msgid ""
+"Output status messages tracing the steps performed when invoking &dpkg;."
 msgstr "Affiche le détail des opérations liées à l'invocation de &dpkg;."
 msgstr "Affiche le détail des opérations liées à l'invocation de &dpkg;."
 
 
 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
 #. type: Content of: <refentry><refsect1><variablelist><varlistentry><term>
@@ -8089,17 +8104,19 @@ msgstr ""
 msgid "&file-aptconf;"
 msgid "&file-aptconf;"
 msgstr "&file-aptconf;"
 msgstr "&file-aptconf;"
 
 
-#.  ? reading apt.conf
+#.  ? reading apt.conf 
 #. type: Content of: <refentry><refsect1><para>
 #. type: Content of: <refentry><refsect1><para>
 #: apt.conf.5.xml:1096
 #: apt.conf.5.xml:1096
 msgid "&apt-cache;, &apt-config;, &apt-preferences;."
 msgid "&apt-cache;, &apt-config;, &apt-preferences;."
 msgstr "&apt-cache;, &apt-config;, &apt-preferences;."
 msgstr "&apt-cache;, &apt-config;, &apt-preferences;."
 
 
-#.  The last update date
+#.  The last update date 
 #. type: Content of: <refentry><refentryinfo>
 #. type: Content of: <refentry><refentryinfo>
 #: apt_preferences.5.xml:13
 #: apt_preferences.5.xml:13
-msgid "&apt-author.team; &apt-email; &apt-product; <date>16 February 2010</date>"
-msgstr "&apt-author.team; &apt-email; &apt-product; <date>16 février 2010</date>"
+msgid ""
+"&apt-author.team; &apt-email; &apt-product; <date>16 February 2010</date>"
+msgstr ""
+"&apt-author.team; &apt-email; &apt-product; <date>16 février 2010</date>"
 
 
 #. type: Content of: <refentry><refnamediv><refname>
 #. type: Content of: <refentry><refnamediv><refname>
 #: apt_preferences.5.xml:21 apt_preferences.5.xml:28
 #: apt_preferences.5.xml:21 apt_preferences.5.xml:28
@@ -8288,7 +8305,8 @@ msgstr "une priorité égale à 990"
 
 
 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
 #. type: Content of: <refentry><refsect1><refsect2><para><variablelist><varlistentry><listitem><simpara>
 #: apt_preferences.5.xml:118
 #: apt_preferences.5.xml:118
-msgid "to the versions that are not installed and belong to the target release."
+msgid ""
+"to the versions that are not installed and belong to the target release."
 msgstr ""
 msgstr ""
 "est affectée aux versions qui ne sont pas installées et qui appartiennent à "
 "est affectée aux versions qui ne sont pas installées et qui appartiennent à "
 "la distribution par défaut."
 "la distribution par défaut."
@@ -8803,7 +8821,8 @@ msgstr ""
 #. type: Content of: <refentry><refsect1><refsect2><title>
 #. type: Content of: <refentry><refsect1><refsect2><title>
 #: apt_preferences.5.xml:339
 #: apt_preferences.5.xml:339
 msgid "Determination of Package Version and Distribution Properties"
 msgid "Determination of Package Version and Distribution Properties"
-msgstr "Détermination de la version des paquets et des propriétés des distributions"
+msgstr ""
+"Détermination de la version des paquets et des propriétés des distributions"
 
 
 #. type: Content of: <refentry><refsect1><refsect2><para>
 #. type: Content of: <refentry><refsect1><refsect2><para>
 #: apt_preferences.5.xml:341
 #: apt_preferences.5.xml:341
@@ -9875,7 +9894,8 @@ msgstr "$Id: guide.sgml,v 1.7 2003/04/26 23:26:13 doogie Exp $"
 
 
 #. type: <abstract></abstract>
 #. type: <abstract></abstract>
 #: guide.sgml:11
 #: guide.sgml:11
-msgid "This document provides an overview of how to use the the APT package manager."
+msgid ""
+"This document provides an overview of how to use the the APT package manager."
 msgstr ""
 msgstr ""
 "Ce document fournit un aperçu des méthode d'utilisation du gestionnaire de "
 "Ce document fournit un aperçu des méthode d'utilisation du gestionnaire de "
 "paquets APT."
 "paquets APT."
@@ -10781,8 +10801,10 @@ msgstr "Résumé final"
 
 
 #. type: <p></p>
 #. type: <p></p>
 #: guide.sgml:447
 #: guide.sgml:447
-msgid "Finally, APT will print out a summary of all the changes that will occur."
-msgstr "Enfin, APT affichera un résumé de toutes les opérations qui prendront place."
+msgid ""
+"Finally, APT will print out a summary of all the changes that will occur."
+msgstr ""
+"Enfin, APT affichera un résumé de toutes les opérations qui prendront place."
 
 
 #. type: <example></example>
 #. type: <example></example>
 #: guide.sgml:452
 #: guide.sgml:452

+ 3 - 0
test/integration/framework

@@ -64,6 +64,8 @@ runapt() {
 	msgdebug "Executing: ${CCMD}$*${CDEBUG} "
 	msgdebug "Executing: ${CCMD}$*${CDEBUG} "
 	if [ -f ./aptconfig.conf ]; then
 	if [ -f ./aptconfig.conf ]; then
 		APT_CONFIG=aptconfig.conf LD_LIBRARY_PATH=${BUILDDIRECTORY} ${BUILDDIRECTORY}/$*
 		APT_CONFIG=aptconfig.conf LD_LIBRARY_PATH=${BUILDDIRECTORY} ${BUILDDIRECTORY}/$*
+        elif [ -f ../aptconfig.conf ]; then
+                APT_CONFIG=../aptconfig.conf LD_LIBRARY_PATH=${BUILDDIRECTORY} ${BUILDDIRECTORY}/$*
 	else
 	else
 		LD_LIBRARY_PATH=${BUILDDIRECTORY} ${BUILDDIRECTORY}/$*
 		LD_LIBRARY_PATH=${BUILDDIRECTORY} ${BUILDDIRECTORY}/$*
 	fi
 	fi
@@ -111,6 +113,7 @@ setupenvironment() {
 	cp $(find $TESTDIR -name '*.pub' -o -name '*.sec') keys/
 	cp $(find $TESTDIR -name '*.pub' -o -name '*.sec') keys/
 	ln -s ${TMPWORKINGDIRECTORY}/keys/joesixpack.pub rootdir/etc/apt/trusted.gpg.d/joesixpack.gpg
 	ln -s ${TMPWORKINGDIRECTORY}/keys/joesixpack.pub rootdir/etc/apt/trusted.gpg.d/joesixpack.gpg
 	echo "Dir \"${TMPWORKINGDIRECTORY}/rootdir\";" > aptconfig.conf
 	echo "Dir \"${TMPWORKINGDIRECTORY}/rootdir\";" > aptconfig.conf
+	echo "Dir::state::status \"${TMPWORKINGDIRECTORY}/rootdir/var/lib/dpkg/status\";" >> aptconfig.conf
 	echo "Debug::NoLocking \"true\";" >> aptconfig.conf
 	echo "Debug::NoLocking \"true\";" >> aptconfig.conf
 	echo "APT::Get::Show-User-Simulation-Note \"false\";" >> aptconfig.conf
 	echo "APT::Get::Show-User-Simulation-Note \"false\";" >> aptconfig.conf
 	echo "Dir::Bin::dpkg \"fakeroot\";" >> aptconfig.conf
 	echo "Dir::Bin::dpkg \"fakeroot\";" >> aptconfig.conf

+ 1 - 1
test/integration/run-tests

@@ -1,7 +1,7 @@
 #!/bin/sh
 #!/bin/sh
 set -e
 set -e
 
 
-local DIR=$(readlink -f $(dirname $0))
+DIR=$(readlink -f $(dirname $0))
 for testcase in $(run-parts --list $DIR | grep '/test-'); do
 for testcase in $(run-parts --list $DIR | grep '/test-'); do
 	echo "\033[1;32mRun Testcase \033[1;35m$(basename ${testcase})\033[0m"
 	echo "\033[1;32mRun Testcase \033[1;35m$(basename ${testcase})\033[0m"
 	${testcase}
 	${testcase}

+ 1 - 1
test/integration/test-autoremove

@@ -1,7 +1,7 @@
 #!/bin/sh
 #!/bin/sh
 set -e
 set -e
 
 
-local TESTDIR=$(readlink -f $(dirname $0))
+TESTDIR=$(readlink -f $(dirname $0))
 . $TESTDIR/framework
 . $TESTDIR/framework
 setupenvironment
 setupenvironment
 configarchitecture 'i386'
 configarchitecture 'i386'

+ 1 - 1
test/integration/test-bug-590438-broken-provides-thanks-to-remove-order

@@ -1,7 +1,7 @@
 #!/bin/sh
 #!/bin/sh
 set -e
 set -e
 
 
-local TESTDIR=$(readlink -f $(dirname $0))
+TESTDIR=$(readlink -f $(dirname $0))
 . $TESTDIR/framework
 . $TESTDIR/framework
 
 
 setupenvironment
 setupenvironment

+ 1 - 1
test/integration/test-bug-591882-conkeror

@@ -1,7 +1,7 @@
 #!/bin/sh
 #!/bin/sh
 set -e
 set -e
 
 
-local TESTDIR=$(readlink -f $(dirname $0))
+TESTDIR=$(readlink -f $(dirname $0))
 . $TESTDIR/framework
 . $TESTDIR/framework
 setupenvironment
 setupenvironment
 configarchitecture "i386"
 configarchitecture "i386"

+ 1 - 1
test/integration/test-bug-595691-empty-and-broken-archive-files

@@ -1,7 +1,7 @@
 #!/bin/sh
 #!/bin/sh
 set -e
 set -e
 
 
-local TESTDIR=$(readlink -f $(dirname $0))
+TESTDIR=$(readlink -f $(dirname $0))
 . $TESTDIR/framework
 . $TESTDIR/framework
 setupenvironment
 setupenvironment
 configarchitecture "i386"
 configarchitecture "i386"

+ 1 - 1
test/integration/test-bug-598669-install-postfix-gets-exim-heavy

@@ -1,7 +1,7 @@
 #!/bin/sh
 #!/bin/sh
 set -e
 set -e
 
 
-local TESTDIR=$(readlink -f $(dirname $0))
+TESTDIR=$(readlink -f $(dirname $0))
 . $TESTDIR/framework
 . $TESTDIR/framework
 setupenvironment
 setupenvironment
 configarchitecture "i386"
 configarchitecture "i386"

+ 1 - 1
test/integration/test-compressed-indexes

@@ -1,7 +1,7 @@
 #!/bin/sh
 #!/bin/sh
 set -e
 set -e
 
 
-local TESTDIR=$(readlink -f $(dirname $0))
+TESTDIR=$(readlink -f $(dirname $0))
 . $TESTDIR/framework
 . $TESTDIR/framework
 
 
 setupenvironment
 setupenvironment

+ 1 - 1
test/integration/test-disappearing-packages

@@ -1,7 +1,7 @@
 #!/bin/sh
 #!/bin/sh
 set -e
 set -e
 
 
-local TESTDIR=$(readlink -f $(dirname $0))
+TESTDIR=$(readlink -f $(dirname $0))
 . $TESTDIR/framework
 . $TESTDIR/framework
 setupenvironment
 setupenvironment
 configarchitecture "i386"
 configarchitecture "i386"

+ 1 - 1
test/integration/test-pdiff-usage

@@ -1,7 +1,7 @@
 #!/bin/sh
 #!/bin/sh
 set -e
 set -e
 
 
-local TESTDIR=$(readlink -f $(dirname $0))
+TESTDIR=$(readlink -f $(dirname $0))
 . $TESTDIR/framework
 . $TESTDIR/framework
 
 
 setupenvironment
 setupenvironment

+ 1 - 1
test/integration/test-policy-pinning

@@ -1,7 +1,7 @@
 #!/bin/sh
 #!/bin/sh
 set -e
 set -e
 
 
-local TESTDIR=$(readlink -f $(dirname $0))
+TESTDIR=$(readlink -f $(dirname $0))
 . $TESTDIR/framework
 . $TESTDIR/framework
 
 
 setupenvironment
 setupenvironment

+ 1 - 1
test/integration/test-ubuntu-bug-614993

@@ -1,7 +1,7 @@
 #!/bin/sh
 #!/bin/sh
 set -e
 set -e
 
 
-local TESTDIR=$(readlink -f $(dirname $0))
+TESTDIR=$(readlink -f $(dirname $0))
 . $TESTDIR/framework
 . $TESTDIR/framework
 setupenvironment
 setupenvironment
 configarchitecture "amd64"
 configarchitecture "amd64"