From: Michael Vogt Date: Thu, 24 Mar 2011 16:37:18 +0000 (+0100) Subject: merge fix from Matt Zimmerman, many thanks (LP: #741098) X-Git-Tag: 0.8.14~8^2~6 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/83e6798e72fabee7ec333a7e897b095cda688c45 merge fix from Matt Zimmerman, many thanks (LP: #741098) --- diff --git a/debian/changelog b/debian/changelog index d9a20765f..6ccb3dede 100644 --- a/debian/changelog +++ b/debian/changelog @@ -14,6 +14,7 @@ apt (0.8.13) unstable; urgency=low * mirror method: - when downloading data, show the mirror being used - randomize mirror list to ensure more even load + - merge fix from Matt Zimmerman, many thanks (LP: #741098) -- Michael Vogt Thu, 10 Mar 2011 15:56:54 +0100 diff --git a/methods/mirror.cc b/methods/mirror.cc index e499b054b..9d8202dad 100644 --- a/methods/mirror.cc +++ b/methods/mirror.cc @@ -141,8 +141,10 @@ bool MirrorMethod::DownloadMirrorFile(string mirror_uri_str) pkgAcquire Fetcher; new pkgAcqFile(&Fetcher, fetch, "", 0, "", "", "", MirrorFile); bool res = (Fetcher.Run() == pkgAcquire::Continue); - if(res) + if(res) { DownloadedMirrorFile = true; + chmod(MirrorFile.c_str(), 0644); + } Fetcher.Shutdown(); if(Debug)