From: Michael Vogt Date: Tue, 25 Sep 2007 09:25:42 +0000 (+0200) Subject: * cmdline/apt-mark: X-Git-Tag: 0.7.24ubuntu1~136 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/b049975f5914bafe0d163233354710ef7c660b85?hp=d0c069e3c4a6a0860dae3a19749a39a706efead6 * cmdline/apt-mark: - Fix chmoding after have renamed the extended-states file (LP: #140019) (thanks to Laurent Bigonville, LP: #140019) * cmdline/apt-mark: - Fix chmoding after have renamed the extended-states file (LP: #140019) (thanks to Laurent Bigonville) --- 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) diff --git a/debian/changelog b/debian/changelog index e48a643fa..abeddb4af 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +apt (0.7.6ubuntu12) gutsy; urgency=low + + * cmdline/apt-mark: + - Fix chmoding after have renamed the extended-states file (LP: #140019) + (thanks to Laurent Bigonville, LP: #140019) + + -- + apt (0.7.6ubuntu11) gutsy; urgency=low * apt-pkg/contrib/mmap.cc: @@ -124,6 +132,9 @@ apt (0.7.6ubuntu1) gutsy; 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.