Explorar el Código

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

Michael Vogt hace 19 años
padre
commit
31dc104687
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      cmdline/apt-mark

+ 1 - 1
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)