From: Michael Vogt Date: Wed, 14 Mar 2007 16:11:25 +0000 (+0100) Subject: * cmdline/apt-mark: fix chmod()/rename() ordering X-Git-Tag: 0.7.24ubuntu1~189 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/31dc104687b79d3d9dea7d8c0e1a2bde80598ff0?ds=inline * cmdline/apt-mark: fix chmod()/rename() ordering --- diff --git a/cmdline/apt-mark b/cmdline/apt-mark index 728f083dc..dadc01366 100755 --- a/cmdline/apt-mark +++ b/cmdline/apt-mark @@ -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)