diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2010-11-15 13:34:36 +0100 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2010-11-15 13:34:36 +0100 |
commit | 8cc74fb1f791935bea9afd767fddf78ecebd4740 (patch) | |
tree | 101a9a5177176610b64e5e8b3cb4db968f1222ee /cmdline | |
parent | c2991635eb1d2a6bc8a0910b4f84748415a3ac14 (diff) |
cmdline/apt-get.cc: move Setup a level higher
Diffstat (limited to 'cmdline')
-rw-r--r-- | cmdline/apt-get.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc index a5e3ad454..cf4f1ab36 100644 --- a/cmdline/apt-get.cc +++ b/cmdline/apt-get.cc @@ -2773,9 +2773,6 @@ bool DownloadChangelog(CacheFile &CacheFile, pkgAcquire &Fetcher, pkgCache::VerI "http://packages.debian.org/"); // ... but not the format string to avoid all possible attacks strprintf(path, "/changelogs/pool/%s/%s/%s/%s_%s/changelog", src_section.c_str(), prefix.c_str(), srcpkg.c_str(), srcpkg.c_str(), verstr.c_str()); - AcqTextStatus Stat(ScreenWidth, _config->FindI("quiet",0)); - Fetcher.Setup(&Stat); - // get it new pkgAcqFile(&Fetcher, server+path, "", 0, descr, srcpkg, "ignored", targetfile); int res = Fetcher.Run(); @@ -2817,6 +2814,8 @@ bool DoChangelog(CommandLine &CmdL) APT::VersionSet verset = APT::VersionSet::FromCommandLine(Cache, CmdL.FileList + 1, APT::VersionSet::CANDIDATE, helper); pkgAcquire Fetcher; + AcqTextStatus Stat(ScreenWidth, _config->FindI("quiet",0)); + Fetcher.Setup(&Stat); if (verset.empty() == true) return false; |