merge fix from Matt Zimmerman, many thanks (LP: #741098)
authorMichael Vogt <michael.vogt@ubuntu.com>
Thu, 24 Mar 2011 16:37:18 +0000 (17:37 +0100)
committerMichael Vogt <michael.vogt@ubuntu.com>
Thu, 24 Mar 2011 16:37:18 +0000 (17:37 +0100)
debian/changelog
methods/mirror.cc

index d9a2076..6ccb3de 100644 (file)
@@ -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 <michael.vogt@ubuntu.com>  Thu, 10 Mar 2011 15:56:54 +0100
 
index e499b05..9d8202d 100644 (file)
@@ -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)