* cmdline/apt-mark:
authorMichael Vogt <michael.vogt@ubuntu.com>
Tue, 25 Sep 2007 09:17:18 +0000 (11:17 +0200)
committerMichael Vogt <michael.vogt@ubuntu.com>
Tue, 25 Sep 2007 09:17:18 +0000 (11:17 +0200)
  - Fix chmoding after have renamed the extended-states file (LP: #140019)
    (thanks to Laurent Bigonville)

cmdline/apt-mark
debian/changelog

index fdc3e18..f6e749e 100755 (executable)
@@ -40,7 +40,7 @@ if __name__ == "__main__":
     if not options.filename:
         STATE_FILE = apt_pkg.Config.FindDir("Dir::State") + "extended_states"
     else:
-        STATE_FILE=options.state_file
+        STATE_FILE=options.filename
 
     # open the statefile
     if os.path.exists(STATE_FILE):
@@ -62,4 +62,4 @@ if __name__ == "__main__":
         # all done, rename the tmpfile
         os.chmod(outfile.name, 0644)
         os.rename(outfile.name, STATE_FILE)
-        os.chmod(outfile.name, 0644)
+        os.chmod(STATE_FILE, 0644)
index 46b6dc7..a271c6a 100644 (file)
@@ -34,6 +34,9 @@ apt (0.7.7) UNRELEASED; urgency=low
   * cmdline/apt-get.cc:
     - do not change the auto-installed information if a package
       is reinstalled
+  * cmdline/apt-mark:
+    - Fix chmoding after have renamed the extended-states file (LP: #140019)
+      (thanks to Laurent Bigonville)
 
   [ Ian Jackson ]
   * dpkg-triggers: Deal properly with new package states.