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

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