From 25838be607c1a61783060c352d1842cd23b2677f Mon Sep 17 00:00:00 2001 From: Justin B Rye Date: Fri, 25 May 2012 09:45:59 +0200 Subject: * doc/apt-cdrom.8.xml: - replace CDROM with the proper CD-ROM in text --- doc/examples/configure-index | 2 +- doc/examples/sources.list | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'doc/examples') diff --git a/doc/examples/configure-index b/doc/examples/configure-index index 49e803f91..f75b5738a 100644 --- a/doc/examples/configure-index +++ b/doc/examples/configure-index @@ -90,7 +90,7 @@ APT Authentication { - TrustCDROM "false"; // consider the CDROM always trusted + TrustCDROM "false"; // consider the CD-ROM always trusted }; // Some general options diff --git a/doc/examples/sources.list b/doc/examples/sources.list index ef729e203..1aa3d6865 100644 --- a/doc/examples/sources.list +++ b/doc/examples/sources.list @@ -1,6 +1,6 @@ # See sources.list(5) for more information, especialy # Remember that you can only use http, ftp or file URIs -# CDROMs are managed through the apt-cdrom tool. +# CD-ROMs are managed through the apt-cdrom tool. deb http://http.us.debian.org/debian stable main contrib non-free deb http://security.debian.org stable/updates main contrib non-free -- cgit v1.2.3-70-g09d2 From 04e9cc0814dd0a77fcae4847d5d0d9002fa54a8f Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Sat, 26 May 2012 15:51:15 +0200 Subject: * doc/examples/sources.list: - use the codename instead of 'stable' in the examples sources.list as we do in the manpage and as the debian-installer does --- .bzrignore | 1 + debian/changelog | 3 +++ doc/examples/sources.list | 9 --------- doc/examples/sources.list.in | 8 ++++++++ doc/makefile | 3 +++ 5 files changed, 15 insertions(+), 9 deletions(-) delete mode 100644 doc/examples/sources.list create mode 100644 doc/examples/sources.list.in (limited to 'doc/examples') diff --git a/.bzrignore b/.bzrignore index dab38cf71..6dcdc8eb5 100644 --- a/.bzrignore +++ b/.bzrignore @@ -26,4 +26,5 @@ abicheck/tests/ # apt man pages and other documentation ./doc/*/ !./doc/examples/ +./doc/examples/sources.list !./doc/po/ diff --git a/debian/changelog b/debian/changelog index f69938820..92981027e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -10,6 +10,9 @@ apt (0.9.5.2) UNRELEASED; urgency=low * doc/apt-verbatim.ent: - APT doesn't belong to the product 'Linux', so use 'APT' instead as after all APT is a big suite of applications + * doc/examples/sources.list: + - use the codename instead of 'stable' in the examples sources.list + as we do in the manpage and as the debian-installer does [ Justin B Rye ] * doc/apt-cdrom.8.xml: diff --git a/doc/examples/sources.list b/doc/examples/sources.list deleted file mode 100644 index 1aa3d6865..000000000 --- a/doc/examples/sources.list +++ /dev/null @@ -1,9 +0,0 @@ -# See sources.list(5) for more information, especialy -# Remember that you can only use http, ftp or file URIs -# CD-ROMs are managed through the apt-cdrom tool. -deb http://http.us.debian.org/debian stable main contrib non-free -deb http://security.debian.org stable/updates main contrib non-free - -# Uncomment if you want the apt-get source function to work -#deb-src http://http.us.debian.org/debian stable main contrib non-free -#deb-src http://security.debian.org stable/updates main contrib non-free diff --git a/doc/examples/sources.list.in b/doc/examples/sources.list.in new file mode 100644 index 000000000..745e32cbe --- /dev/null +++ b/doc/examples/sources.list.in @@ -0,0 +1,8 @@ +# See sources.list(5) manpage for more information +# Remember that CD-ROMs, DVDs and such are managed through the apt-cdrom tool. +deb http://ftp.us.debian.org/debian &stable-codename; main contrib non-free +deb http://security.debian.org &stable-codename;/updates main contrib non-free + +# Uncomment if you want the apt-get source function to work +#deb-src http://ftp.us.debian.org/debian &stable-codename; main contrib non-free +#deb-src http://security.debian.org &stable-codename;/updates main contrib non-free diff --git a/doc/makefile b/doc/makefile index 7b49ac269..220a6160d 100644 --- a/doc/makefile +++ b/doc/makefile @@ -56,6 +56,9 @@ endif SOURCE = apt.8 include $(MANPAGE_H) +examples/sources.list: examples/sources.list.in apt-verbatim.ent + sed -e 's#&stable-codename;#$(shell grep --max-count=1 '^ examples/sources.list + # Examples SOURCE = examples/apt.conf examples/sources.list examples/configure-index examples/apt-https-method-example.conf TO = $(DOC) -- cgit v1.2.3-70-g09d2 From 3adddfa810c916132b59b11c736e8747581662bc Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Sat, 9 Jun 2012 23:08:19 +0200 Subject: * ftparchive/apt-ftparchive.cc: - default to putting the Contents-* files below $(SECTION) as apt-file expects them there - thanks Martin-Éric Racine! (Closes: #675827) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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(-) (limited to 'doc/examples') diff --git a/debian/changelog b/debian/changelog index b263002ae..4641da2b3 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 1b69c3cfc..91fdfe1e0 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 c9d352ab6..0d245c0af 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 37691fa1f..905bbb997 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 ceb8ee439..03adfbc61 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 705fb2a80..9b811db96 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 4d22e6ee8..dd4ea430c 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 7b9e7dff6..015003796 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 a38efdf3c..4effb1a7b 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 9dc093168..4e16f0240 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 3fa70a2d6..c900e78c1 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 a3f05ae50..b4b0c4f06 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 4efbecc8c..4b2c3ba12 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"); -- cgit v1.2.3-70-g09d2