diff options
author | Tris Emmy Wilson <anemptystring@gmail.com> | 2020-01-08 18:24:31 -0600 |
---|---|---|
committer | Tris Emmy Wilson <anemptystring@gmail.com> | 2020-01-09 12:44:22 -0600 |
commit | 009b144dc466856b05473c73bdf75ea21755b037 (patch) | |
tree | a59a5d73e25cf528ecf3710e3414e30160201a70 /apt-private/private-source.cc | |
parent | 84176f6cde1fda522a3aad21d8238c7bd603da87 (diff) |
apt-mark: don't lie about successful marks
This commit fixes an issue where apt-mark would say it had made a change
before actually making the change. For example, when running as a user
without permission to write to extended_states, the package is not
marked but apt-mark claims it is:
~ % apt-mark manual rxvt-unicode
rxvt-unicode set to manually installed.
E: Could not create [...snip...] (13: Permission denied)
E: Failed to write temporary StateFile /var/lib/apt/extended_states
This commit moves reporting of "[package] set to [manually |
automatically] installed" after saving extended_states and confirming it
was successful.
Diffstat (limited to 'apt-private/private-source.cc')
0 files changed, 0 insertions, 0 deletions