From 3adddfa810c916132b59b11c736e8747581662bc Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Sat, 9 Jun 2012 23:08:19 +0200 Subject: [PATCH] =?utf8?q?*=20ftparchive/apt-ftparchive.cc:=20=20=20-=20de?= =?utf8?q?fault=20to=20putting=20the=20Contents-*=20files=20below=20$(SECT?= =?utf8?q?ION)=20as=20apt-file=20=20=20=20=20expects=20them=20there=20-=20?= =?utf8?q?thanks=20Martin-=C3=89ric=20Racine!=20(Closes:=20#675827)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- debian/changelog | 3 +++ doc/apt-ftparchive.1.xml | 2 +- doc/examples/apt-ftparchive.conf | 6 +++--- doc/po/apt-doc.pot | 6 +++--- doc/po/de.po | 4 ++-- doc/po/es.po | 4 ++-- doc/po/fr.po | 2 +- doc/po/it.po | 2 +- doc/po/ja.po | 2 +- doc/po/pl.po | 2 +- doc/po/pt.po | 2 +- doc/po/pt_BR.po | 2 +- ftparchive/apt-ftparchive.cc | 2 +- 13 files changed, 21 insertions(+), 18 deletions(-) diff --git a/debian/changelog b/debian/changelog index b263002a..4641da2b 100644 --- a/debian/changelog +++ b/debian/changelog @@ -23,6 +23,9 @@ apt (0.9.5.2) UNRELEASED; urgency=low - apply patch from Daniel Hartwig to fix a segfault in case the LongOpt is empty (Closes: #676331) - fix segfault with empty LongOpt in --no-* branch + * ftparchive/apt-ftparchive.cc: + - default to putting the Contents-* files below $(SECTION) as apt-file + expects them there - thanks Martin-Éric Racine! (Closes: #675827) [ Justin B Rye ] * doc/apt-cdrom.8.xml: diff --git a/doc/apt-ftparchive.1.xml b/doc/apt-ftparchive.1.xml index 1b69c3cf..91fdfe1e 100644 --- a/doc/apt-ftparchive.1.xml +++ b/doc/apt-ftparchive.1.xml @@ -305,7 +305,7 @@ Sets the output Contents file. Defaults to - $(DIST)/Contents-$(ARCH). If this setting causes multiple + $(DIST)/$(SECTION)/Contents-$(ARCH). If this setting causes multiple Packages files to map onto a single Contents file (as is the default) then apt-ftparchive will integrate those package files together automatically. diff --git a/doc/examples/apt-ftparchive.conf b/doc/examples/apt-ftparchive.conf index c9d352ab..0d245c0a 100644 --- a/doc/examples/apt-ftparchive.conf +++ b/doc/examples/apt-ftparchive.conf @@ -21,21 +21,21 @@ Default { BinDirectory "pool/main" { Packages "dists/sid/main/binary-i386/Packages"; Sources "dists/sid/main/source/Sources"; - Contents "dists/sid/Contents-i386"; + Contents "dists/sid/main/Contents-i386"; } // This is the same for the contrib section BinDirectory "pool/contrib" { Packages "dists/sid/contrib/binary-i386/Packages"; Sources "dists/sid/contrib/source/Sources"; - Contents "dists/sid/Contents-i386"; + Contents "dists/sid/contrib/Contents-i386"; } // This is the same for the non-free section BinDirectory "pool/non-free" { Packages "dists/sid/non-free/binary-i386/Packages"; Sources "dists/sid/non-free/source/Sources"; - Contents "dists/sid/Contents-i386"; + Contents "dists/sid/non-free/Contents-i386"; }; // By default all Packages should have the extension ".deb" diff --git a/doc/po/apt-doc.pot b/doc/po/apt-doc.pot index 37691fa1..905bbb99 100644 --- a/doc/po/apt-doc.pot +++ b/doc/po/apt-doc.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: apt-doc 0.9.5.1\n" "Report-Msgid-Bugs-To: APT Development Team \n" -"POT-Creation-Date: 2012-06-09 22:05+0300\n" +"POT-Creation-Date: 2012-06-09 23:05+0300\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -5358,8 +5358,8 @@ msgstr "" #: apt-ftparchive.1.xml:307 msgid "" "Sets the output Contents file. Defaults to " -"$(DIST)/Contents-$(ARCH). If this setting causes " -"multiple Packages files to map onto a single Contents file (as is the " +"$(DIST)/$(SECTION)/Contents-$(ARCH). If this setting " +"causes multiple Packages files to map onto a single Contents file (as is the " "default) then apt-ftparchive will integrate those " "package files together automatically." msgstr "" diff --git a/doc/po/de.po b/doc/po/de.po index ceb8ee43..03adfbc6 100644 --- a/doc/po/de.po +++ b/doc/po/de.po @@ -8010,12 +8010,12 @@ msgstr "" #. type: Content of: #: apt-ftparchive.1.xml:307 msgid "" -"Sets the output Contents file. Defaults to $(DIST)/Contents-$(ARCH)" +"Sets the output Contents file. Defaults to $(DIST)/$(SECTION)/Contents-$(ARCH)" ". If this setting causes multiple Packages files to map onto a " "single Contents file (as is the default) then apt-ftparchive will integrate those package files together automatically." msgstr "" -"setzt die Ausgabe-Contens-Datei. Vorgabe ist $(DIST)/Contents-" +"setzt die Ausgabe-Contens-Datei. Vorgabe ist $(DIST)/$(SECTION)/Contents-" "$(ARCH). Wenn diese Einstellung bewirkt, dass mehrere Packages-" "Dateien auf einer einzelnen Inhaltsdatei abgebildet werden (so wie es " "Vorgabe ist), dann wird apt-ftparchive diese Dateien " diff --git a/doc/po/es.po b/doc/po/es.po index 705fb2a8..9b811db9 100644 --- a/doc/po/es.po +++ b/doc/po/es.po @@ -8049,13 +8049,13 @@ msgstr "" #. type: Content of: #: apt-ftparchive.1.xml:307 msgid "" -"Sets the output Contents file. Defaults to $(DIST)/Contents-$(ARCH)" +"Sets the output Contents file. Defaults to $(DIST)/$(SECTION)/Contents-$(ARCH)" ". If this setting causes multiple Packages files to map onto a " "single Contents file (as is the default) then apt-ftparchive will integrate those package files together automatically." msgstr "" "Define el fichero «Contents» de salida. El valor predeterminado es " -"$(DIST)/Contents-$(ARCH). Si este valor causa que varios ficheros " +"$(DIST)/$(SECTION)/Contents-$(ARCH). Si este valor causa que varios ficheros " "«Packages» se relacionen en un único fichero «Contents» (el comportamiento " "predeterminado), apt-ftparchive integrará automáticamente " "esos ficheros de paquete juntos." diff --git a/doc/po/fr.po b/doc/po/fr.po index 4d22e6ee..dd4ea430 100644 --- a/doc/po/fr.po +++ b/doc/po/fr.po @@ -7965,7 +7965,7 @@ msgstr "" #. type: Content of: #: apt-ftparchive.1.xml:307 msgid "" -"Sets the output Contents file. Defaults to $(DIST)/Contents-$(ARCH)" +"Sets the output Contents file. Defaults to $(DIST)/$(SECTION)/Contents-$(ARCH)" ". If this setting causes multiple Packages files to map onto a " "single Contents file (as is the default) then apt-ftparchive will integrate those package files together automatically." diff --git a/doc/po/it.po b/doc/po/it.po index 7b9e7dff..01500379 100644 --- a/doc/po/it.po +++ b/doc/po/it.po @@ -5301,7 +5301,7 @@ msgstr "" #. type: Content of: #: apt-ftparchive.1.xml:307 msgid "" -"Sets the output Contents file. Defaults to $(DIST)/Contents-$(ARCH)" +"Sets the output Contents file. Defaults to $(DIST)/$(SECTION)/Contents-$(ARCH)" ". If this setting causes multiple Packages files to map onto a " "single Contents file (as is the default) then apt-ftparchive will integrate those package files together automatically." diff --git a/doc/po/ja.po b/doc/po/ja.po index a38efdf3..4effb1a7 100644 --- a/doc/po/ja.po +++ b/doc/po/ja.po @@ -7905,7 +7905,7 @@ msgstr "" #. type: Content of: #: apt-ftparchive.1.xml:307 msgid "" -"Sets the output Contents file. Defaults to $(DIST)/Contents-$(ARCH)" +"Sets the output Contents file. Defaults to $(DIST)/$(SECTION)/Contents-$(ARCH)" ". If this setting causes multiple Packages files to map onto a " "single Contents file (as is the default) then apt-ftparchive will integrate those package files together automatically." diff --git a/doc/po/pl.po b/doc/po/pl.po index 9dc09316..4e16f024 100644 --- a/doc/po/pl.po +++ b/doc/po/pl.po @@ -7073,7 +7073,7 @@ msgstr "" #. type: Content of: #: apt-ftparchive.1.xml:307 msgid "" -"Sets the output Contents file. Defaults to $(DIST)/Contents-$(ARCH)" +"Sets the output Contents file. Defaults to $(DIST)/$(SECTION)/Contents-$(ARCH)" ". If this setting causes multiple Packages files to map onto a " "single Contents file (as is the default) then apt-ftparchive will integrate those package files together automatically." diff --git a/doc/po/pt.po b/doc/po/pt.po index 3fa70a2d..c900e78c 100644 --- a/doc/po/pt.po +++ b/doc/po/pt.po @@ -8026,7 +8026,7 @@ msgstr "" #. type: Content of: #: apt-ftparchive.1.xml:307 msgid "" -"Sets the output Contents file. Defaults to $(DIST)/Contents-$(ARCH)" +"Sets the output Contents file. Defaults to $(DIST)/$(SECTION)/Contents-$(ARCH)" ". If this setting causes multiple Packages files to map onto a " "single Contents file (as is the default) then apt-ftparchive will integrate those package files together automatically." diff --git a/doc/po/pt_BR.po b/doc/po/pt_BR.po index a3f05ae5..b4b0c4f0 100644 --- a/doc/po/pt_BR.po +++ b/doc/po/pt_BR.po @@ -5767,7 +5767,7 @@ msgstr "" #. type: Content of: #: apt-ftparchive.1.xml:307 msgid "" -"Sets the output Contents file. Defaults to $(DIST)/Contents-$(ARCH)" +"Sets the output Contents file. Defaults to $(DIST)/$(SECTION)/Contents-$(ARCH)" ". If this setting causes multiple Packages files to map onto a " "single Contents file (as is the default) then apt-ftparchive will integrate those package files together automatically." diff --git a/ftparchive/apt-ftparchive.cc b/ftparchive/apt-ftparchive.cc index 4efbecc8..4b2c3ba1 100644 --- a/ftparchive/apt-ftparchive.cc +++ b/ftparchive/apt-ftparchive.cc @@ -451,7 +451,7 @@ void LoadTree(vector &PkgList,Configuration &Setup) string DIPrfx = Setup.Find("TreeDefault::InternalPrefix", "$(DIST)/$(SECTION)/"); string DContents = Setup.Find("TreeDefault::Contents", - "$(DIST)/Contents-$(ARCH)"); + "$(DIST)/$(SECTION)/Contents-$(ARCH)"); string DContentsH = Setup.Find("TreeDefault::Contents::Header",""); string DBCache = Setup.Find("TreeDefault::BinCacheDB", "packages-$(ARCH).db"); -- 2.20.1