From 54a14f507b63236ce8c94bb92a835be0cfd161dd Mon Sep 17 00:00:00 2001 From: Christian Perrier Date: Wed, 1 Mar 2006 16:53:04 +0000 Subject: Japanese manpages typo corrections --- doc/ja/apt-ftparchive.ja.1.xml | 7 ++++--- doc/ja/apt-secure.ja.8.xml | 6 +++--- 2 files changed, 7 insertions(+), 6 deletions(-) (limited to 'doc') diff --git a/doc/ja/apt-ftparchive.ja.1.xml b/doc/ja/apt-ftparchive.ja.1.xml index 82bd9c023..be6bbd767 100644 --- a/doc/ja/apt-ftparchive.ja.1.xml +++ b/doc/ja/apt-ftparchive.ja.1.xml @@ -90,7 +90,8 @@ 本質的に apt-ftparchive は、 .deb ファイルの内容をキャッシュするのにバイナリデータベースを使用できます。 また、&gzip; 以外のいかなる外部プログラムにも依存しません。 - すべて生成する際、 + すべて生成する際には、 + ファイル変更点の検出と希望した圧縮出力ファイルの作成を自動的に実行します。 - override ファイルを指定した場合、. + override ファイルを指定した場合、 src 拡張子がついたソースオーバーライドファイルを探します。 使用するソースオーバーライドファイルを変更するのには、 --source-override オプションを使用します。 @@ -833,7 +834,7 @@ for i in Sections do という形式か、単純に new となります。 - 最初の形式は、// で区切られた古いemail アドレスのリストを許可します。 + 最初の形式は、// で区切られた古い email アドレスのリストを許可します。 この形式がある場合は、メンテナフィールドになるよう new に置換してください。 2 番目の形式は無条件にメンテナフィールドに置換します。 diff --git a/doc/ja/apt-secure.ja.8.xml b/doc/ja/apt-secure.ja.8.xml index 33a829076..5b9612a7f 100644 --- a/doc/ja/apt-secure.ja.8.xml +++ b/doc/ja/apt-secure.ja.8.xml @@ -100,7 +100,7 @@ responsibility to ensure that the archive integrity is correct. --> apt アーカイブからエンドユーザまでの信頼の輪は、 - いくつかのステップでo区政されています。 + いくつかのステップで構成されています。 apt-secure は、この輪の最後のステップで、 アーカイブを信頼することは、 パッケージに悪意のあるコードが含まれていないと信頼するわけではありませんが、 @@ -182,7 +182,7 @@ per package basis. It is designed to prevent two possible attacks: --> 以上は、パッケージごとの署名チェックとは違うことに注意してください。 - 以下の用に考えられる 2 種類の攻撃を防ぐよう設計されています。 + 以下のように考えられる 2 種類の攻撃を防ぐよう設計されています。 @@ -243,7 +243,7 @@ apt-key は、 apt が使用するキーリストを管理するプログラムです。 このリリースのインストールでは、Debian パッケージリポジトリで使用する、 - キーで署名する デフォルトの Debian アーカイブを提供しますが、 + キーで署名するデフォルトの Debian アーカイブを提供しますが、 apt-key でキーの追加・削除が行えます。 -- cgit v1.2.3-70-g09d2 From 2ac3eeb60e9ea171cee7a05a02424e61fe50d400 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Thu, 30 Mar 2006 10:38:14 +0200 Subject: * make the code follow the apt coding standards better * change the location to turn off pdiff (APT::PDiff=false) --- apt-pkg/acquire-item.cc | 61 +++++++++++++++++++++++++++++--------------- doc/examples/configure-index | 2 ++ 2 files changed, 43 insertions(+), 20 deletions(-) (limited to 'doc') diff --git a/apt-pkg/acquire-item.cc b/apt-pkg/acquire-item.cc index ad977dde4..d845d4605 100644 --- a/apt-pkg/acquire-item.cc +++ b/apt-pkg/acquire-item.cc @@ -170,7 +170,8 @@ pkgAcqDiffIndex::pkgAcqDiffIndex(pkgAcquire *Owner, // should be fixed cleanly as soon as possible if(!FileExists(CurrentPackagesFile) || Desc.URI.substr(0,strlen("file:/")) == "file:/" || - !_config->FindB("Acquire::Diffs",true)) { + !_config->FindB("Acquire::Diffs",true)) + { // we don't have a pkg file or we don't want to queue if(Debug) std::clog << "No index file, local or canceld by user" << std::endl; @@ -178,11 +179,10 @@ pkgAcqDiffIndex::pkgAcqDiffIndex(pkgAcquire *Owner, return; } - if(Debug) { + if(Debug) std::clog << "pkgAcqIndexDiffs::pkgAcqIndexDiffs(): " << CurrentPackagesFile << std::endl; - } - + QueueURI(Desc); } @@ -237,26 +237,32 @@ bool pkgAcqDiffIndex::ParseDiffIndex(string IndexDiffFile) SHA1.AddFD(fd.Fd(), fd.Size()); local_sha1 = string(SHA1.Result()); - if(local_sha1 == ServerSha1) { + if(local_sha1 == ServerSha1) + { + // we have the same sha1 as the server if(Debug) std::clog << "Package file is up-to-date" << std::endl; // set found to true, this will queue a pkgAcqIndexDiffs with // a empty availabe_patches found = true; - } else { + } + else + { if(Debug) std::clog << "SHA1-Current: " << ServerSha1 << std::endl; // check the historie and see what patches we need string history = Tags.FindS("SHA1-History"); std::stringstream hist(history); - while(hist >> d.sha1 >> size >> d.file) { + while(hist >> d.sha1 >> size >> d.file) + { d.size = atoi(size.c_str()); // read until the first match is found if(d.sha1 == local_sha1) found=true; // from that point on, we probably need all diffs - if(found) { + if(found) + { if(Debug) std::clog << "Need to get diff: " << d.file << std::endl; available_patches.push_back(d); @@ -265,12 +271,15 @@ bool pkgAcqDiffIndex::ParseDiffIndex(string IndexDiffFile) } // no information how to get the patches, bail out - if(!found) { + if(!found) + { if(Debug) std::clog << "Can't find a patch in the index file" << std::endl; // Failed will queue a big package file Failed("", NULL); - } else { + } + else + { // queue the diffs new pkgAcqIndexDiffs(Owner, RealURI, Description, Desc.ShortDesc, ExpectedMD5, available_patches); @@ -351,10 +360,13 @@ pkgAcqIndexDiffs::pkgAcqIndexDiffs(pkgAcquire *Owner, Desc.Owner = this; Desc.ShortDesc = ShortDesc; - if(available_patches.size() == 0) { + if(available_patches.size() == 0) + { // we are done (yeah!) Finish(true); - } else { + } + else + { // get the next diff State = StateFetchDiff; QueueNextDiff(); @@ -378,7 +390,8 @@ void pkgAcqIndexDiffs::Finish(bool allDone) { // we restore the original name, this is required, otherwise // the file will be cleaned - if(allDone) { + if(allDone) + { DestFile = _config->FindDir("Dir::State::lists"); DestFile += URItoFileName(RealURI); @@ -435,14 +448,17 @@ bool pkgAcqIndexDiffs::QueueNextDiff() // remove all patches until the next matching patch is found // this requires the Index file to be ordered for(vector::iterator I=available_patches.begin(); - available_patches.size() > 0 && I != available_patches.end() - && (*I).sha1 != local_sha1; - I++) { + available_patches.size() > 0 && + I != available_patches.end() && + (*I).sha1 != local_sha1; + I++) + { available_patches.erase(I); } // error checking and falling back if no patch was found - if(available_patches.size() == 0) { + if(available_patches.size() == 0) + { Failed("", NULL); return false; } @@ -1009,9 +1025,14 @@ void pkgAcqMetaIndex::QueueIndexes(bool verify) } } - // Queue Packages file - new pkgAcqDiffIndex(Owner, (*Target)->URI, (*Target)->Description, - (*Target)->ShortDesc, ExpectedIndexMD5); + // Queue Packages file (either diff or full packages files, depending + // on the users option) + if(_config->FindB("Acquire::PDiffs",false) == false) + new pkgAcqDiffIndex(Owner, (*Target)->URI, (*Target)->Description, + (*Target)->ShortDesc, ExpectedIndexMD5); + else + new newPkgAcqIndex(Owner, (*Target)->URI, (*Target)->Description, + (*Target)->ShortDesc, ExpectedIndexMD5); } } diff --git a/doc/examples/configure-index b/doc/examples/configure-index index dee0c06ff..965a09759 100644 --- a/doc/examples/configure-index +++ b/doc/examples/configure-index @@ -99,6 +99,8 @@ Acquire Queue-Mode "host"; // host|access Retries "0"; Source-Symlinks "true"; + + PDiffs "true"; // try to get the IndexFile diffs // HTTP method configuration http -- cgit v1.2.3-70-g09d2 From 168e1e4e4e763f7b3442909eb8fa25ea40f2e0ee Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Wed, 26 Apr 2006 13:18:00 +0200 Subject: * merged documentation patch (debian #307756) --- debian/changelog | 3 +++ doc/apt-ftparchive.1.xml | 4 ++-- doc/examples/apt-ftparchive.conf | 6 +++--- doc/fr/apt-ftparchive.fr.1.xml | 6 +++--- 4 files changed, 11 insertions(+), 8 deletions(-) (limited to 'doc') diff --git a/debian/changelog b/debian/changelog index c439f0df5..00b46eb22 100644 --- a/debian/changelog +++ b/debian/changelog @@ -10,6 +10,9 @@ apt (0.6.44) unstable; urgency=low patch) Closes: #350025 * Merge from http://www.perrier.eu.org/debian/packages/d-i/level4/apt-main: * bg.po: Added, complete to 512t. Closes: #360262 + * doc/apt-ftparchive.1.xml: + - fix documentation for "SrcPackages" -> "Sources" + (thanks to Bart Martens for the patch, closes: #307756) -- Michael Vogt Tue, 25 Apr 2006 09:34:20 +0200 diff --git a/doc/apt-ftparchive.1.xml b/doc/apt-ftparchive.1.xml index 7c1ae9432..8cfbc72e9 100644 --- a/doc/apt-ftparchive.1.xml +++ b/doc/apt-ftparchive.1.xml @@ -407,10 +407,10 @@ for i in Sections do Sets the Packages file output. - SrcPackages + Sources Sets the Sources file output. At least one of - Packages or SrcPackages is required. + Packages or Sources is required. Contents diff --git a/doc/examples/apt-ftparchive.conf b/doc/examples/apt-ftparchive.conf index 657ec5440..c9d352ab6 100644 --- a/doc/examples/apt-ftparchive.conf +++ b/doc/examples/apt-ftparchive.conf @@ -20,21 +20,21 @@ Default { // Contents file for these in the main section of the sid release BinDirectory "pool/main" { Packages "dists/sid/main/binary-i386/Packages"; - SrcPackages "dists/sid/main/source/Sources"; + Sources "dists/sid/main/source/Sources"; Contents "dists/sid/Contents-i386"; } // This is the same for the contrib section BinDirectory "pool/contrib" { Packages "dists/sid/contrib/binary-i386/Packages"; - SrcPackages "dists/sid/contrib/source/Sources"; + Sources "dists/sid/contrib/source/Sources"; Contents "dists/sid/Contents-i386"; } // This is the same for the non-free section BinDirectory "pool/non-free" { Packages "dists/sid/non-free/binary-i386/Packages"; - SrcPackages "dists/sid/non-free/source/Sources"; + Sources "dists/sid/non-free/source/Sources"; Contents "dists/sid/Contents-i386"; }; diff --git a/doc/fr/apt-ftparchive.fr.1.xml b/doc/fr/apt-ftparchive.fr.1.xml index 61cdfa2ec..9ae6506fc 100644 --- a/doc/fr/apt-ftparchive.fr.1.xml +++ b/doc/fr/apt-ftparchive.fr.1.xml @@ -451,10 +451,10 @@ Indique le fichier -SrcPackages +Sources Indique le fichier « Sources » créé. L'un des deux fichiers, -Packages ou SrcPackages est nécessaire. +Packages ou Sources est nécessaire. @@ -628,4 +628,4 @@ d &manbugs; &traducteur; - \ No newline at end of file + -- cgit v1.2.3-70-g09d2