]> git.saurik.com Git - apt.git/commitdiff
cmdline/apt-mark: fix chmod()/rename() ordering
authorMichael Vogt <egon@tas>
Wed, 14 Mar 2007 16:11:31 +0000 (17:11 +0100)
committerMichael Vogt <egon@tas>
Wed, 14 Mar 2007 16:11:31 +0000 (17:11 +0100)
cmdline/apt-mark

index 533ed87153cbfbfc83619bf059c01de7a29c0b50..dadc0136600c834126c59c194a1ae079ce199d2f 100755 (executable)
@@ -60,4 +60,5 @@ if __name__ == "__main__":
             else:
                 outfile.write(str(tagfile.Section)+"\n")
         # all done, rename the tmpfile
+        os.chmod(outfile.name, 0644)
         os.rename(outfile.name, STATE_FILE)