From 83e6798e72fabee7ec333a7e897b095cda688c45 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Thu, 24 Mar 2011 17:37:18 +0100 Subject: merge fix from Matt Zimmerman, many thanks (LP: #741098) --- methods/mirror.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'methods') 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) -- cgit v1.2.3