summaryrefslogtreecommitdiff
path: root/cmdline/apt-mark
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2007-09-25 11:17:18 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2007-09-25 11:17:18 +0200
commit526d43695b00573dcd8d323348a6b30d5215540b (patch)
tree7148cb83225176d181f1331f069a5630e6df1e9e /cmdline/apt-mark
parent314555a95560264aee5a9b1aa992a1f962ae6fea (diff)
* cmdline/apt-mark:
- Fix chmoding after have renamed the extended-states file (LP: #140019) (thanks to Laurent Bigonville)
Diffstat (limited to 'cmdline/apt-mark')
-rwxr-xr-xcmdline/apt-mark4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmdline/apt-mark b/cmdline/apt-mark
index fdc3e1856..f6e749eb5 100755
--- a/cmdline/apt-mark
+++ b/cmdline/apt-mark
@@ -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)