X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/54eda6ae969cd66d06fe82f7175f753a74d2b7dc..06ca542db20aa4f4cd1e56c12ccda0ec2339b835:/cmdline/apt-mark diff --git a/cmdline/apt-mark b/cmdline/apt-mark index dadc01366..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,3 +62,4 @@ if __name__ == "__main__": # all done, rename the tmpfile os.chmod(outfile.name, 0644) os.rename(outfile.name, STATE_FILE) + os.chmod(STATE_FILE, 0644)