summaryrefslogtreecommitdiff
path: root/cmdline
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2007-03-14 14:08:56 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2007-03-14 14:08:56 +0100
commit5f3e0a63677aea3c3619b747eaabb42b32d825c2 (patch)
tree1edb94198895ecb4cb25533005942b21ee997f9c /cmdline
parent1310a1db3e71d9c1548a7ed84dd80d871d5a397c (diff)
parent7898bd970a791bb8892b0dfdffc683828a447900 (diff)
- ensure proper permissions in the extended_state file (LP#67037)
- applied patch to (optionally) hide the auto-remove information (thanks to Frode M. Døving) (LP#69148)
Diffstat (limited to 'cmdline')
-rw-r--r--cmdline/apt-get.cc7
-rwxr-xr-xcmdline/apt-mark1
2 files changed, 5 insertions, 3 deletions
diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc
index d1d6ab7b4..aa3f3f712 100644
--- a/cmdline/apt-get.cc
+++ b/cmdline/apt-get.cc
@@ -1421,8 +1421,8 @@ bool DoAutomaticRemove(CacheFile &Cache)
{
bool Debug = _config->FindI("Debug::pkgAutoRemove",false);
bool doAutoRemove = _config->FindB("APT::Get::AutomaticRemove", false);
+ bool hideAutoRemove = _config->FindB("APT::Get::HideAutoRemove");
pkgDepCache::ActionGroup group(*Cache);
-
if(Debug)
std::cout << "DoAutomaticRemove()" << std::endl;
@@ -1461,8 +1461,9 @@ bool DoAutomaticRemove(CacheFile &Cache)
}
}
}
- ShowList(c1out, _("The following packages were automatically installed and are no longer required:"), autoremovelist, autoremoveversions);
- if (!doAutoRemove && autoremovelist.size() > 0)
+ if (!hideAutoRemove)
+ ShowList(c1out, _("The following packages were automatically installed and are no longer required:"), autoremovelist, autoremoveversions);
+ if (!doAutoRemove && !hideAutoRemove && autoremovelist.size() > 0)
c1out << _("Use 'apt-get autoremove' to remove them.") << std::endl;
// Now see if we destroyed anything
diff --git a/cmdline/apt-mark b/cmdline/apt-mark
index 533ed8715..728f083dc 100755
--- a/cmdline/apt-mark
+++ b/cmdline/apt-mark
@@ -61,3 +61,4 @@ if __name__ == "__main__":
outfile.write(str(tagfile.Section)+"\n")
# all done, rename the tmpfile
os.rename(outfile.name, STATE_FILE)
+ os.chmod(outfile.name, 0644)