Explorar o código

* cmdline/apt-mark: fix chmod()/rename() ordering

Michael Vogt %!s(int64=19) %!d(string=hai) anos
pai
achega
31dc104687
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      cmdline/apt-mark

+ 1 - 1
cmdline/apt-mark

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