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 533ed87..dadc013 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)