diff options
author | Peter Karlsson <peterk@debian.org> | 2007-10-08 11:44:54 +0100 |
---|---|---|
committer | Peter Karlsson <peterk@debian.org> | 2007-10-08 11:44:54 +0100 |
commit | 21231056c2f4fb82730c0ac7e7f90456668cae38 (patch) | |
tree | 1f9ca6a27065dce5014adea7095596ec6a8cb744 /cmdline/apt-mark | |
parent | 28b68bf4207be80d4549579f34262f1248a2e528 (diff) | |
parent | 24401c09f0a826ec0074f46dfe70efe3aaf79f25 (diff) |
Merge upstream.
Diffstat (limited to 'cmdline/apt-mark')
-rwxr-xr-x | cmdline/apt-mark | 4 |
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) |