[Aptitude-svn-commit] r4274 - in branches/aptitude-0.3/aptitude: .
doc/en src/generic/apt
Daniel Burrows
dburrows at costa.debian.org
Mon Sep 26 04:28:29 UTC 2005
Author: dburrows
Date: Mon Sep 26 04:28:25 2005
New Revision: 4274
Modified:
branches/aptitude-0.3/aptitude/ChangeLog
branches/aptitude-0.3/aptitude/doc/en/aptitude.xml
branches/aptitude-0.3/aptitude/src/generic/apt/aptcache.cc
Log:
Add an option that will purge unused packages if enabled.
Modified: branches/aptitude-0.3/aptitude/ChangeLog
==============================================================================
--- branches/aptitude-0.3/aptitude/ChangeLog (original)
+++ branches/aptitude-0.3/aptitude/ChangeLog Mon Sep 26 04:28:25 2005
@@ -1,5 +1,11 @@
2005-09-25 Daniel Burrows <dburrows at debian.org>
+ * doc/en/aptitude.xml, src/generic/apt/aptcache.cc:
+
+ Add an option to purge packages that are unused, with big red
+ warning flags in its documentation appropriate to the level of
+ foot-shooting-ness that it enables. (Closes: #275150)
+
* src/cmdline/cmdline_download.cc, src/cmdline/cmdline_upgrade.cc, src/main.cc:
Fix the remaining points in the code that need to be updated for
Modified: branches/aptitude-0.3/aptitude/doc/en/aptitude.xml
==============================================================================
--- branches/aptitude-0.3/aptitude/doc/en/aptitude.xml (original)
+++ branches/aptitude-0.3/aptitude/doc/en/aptitude.xml Mon Sep 26 04:28:25 2005
@@ -8162,6 +8162,25 @@
</seg>
</seglistitem>
+ <seglistitem id='configPurge-Unused'>
+ <seg><literal>Aptitude::Purge-Unused</literal></seg>
+ <seg><literal>false</literal></seg>
+ <seg>
+ If this option is <literal>true</literal> and
+ <literal><link
+ linkend='configDelete-Unused'>Aptitude::Delete-Unused</link></literal>
+ is also <literal>true</literal>, then packages which
+ are unused will be <emphasis>purged</emphasis> from
+ the system, removing their configuration files and
+ perhaps other important data. For more information
+ about which packages are considered to be
+ <quote>unused</quote>, see <xref
+ linkend='secAutoInstall'/>. <emphasis>THIS OPTION CAN
+ CAUSE DATA LOSS! DO NOT ENABLE IT UNLESS YOU KNOW
+ WHAT YOU ARE DOING!</emphasis>
+ </seg>
+ </seglistitem>
+
<seglistitem id='configSuggests-Important'>
<seg><literal>Aptitude::Suggests-Important</literal></seg>
Modified: branches/aptitude-0.3/aptitude/src/generic/apt/aptcache.cc
==============================================================================
--- branches/aptitude-0.3/aptitude/src/generic/apt/aptcache.cc (original)
+++ branches/aptitude-0.3/aptitude/src/generic/apt/aptcache.cc Mon Sep 26 04:28:25 2005
@@ -1284,7 +1284,10 @@
bool do_delete=true;
if(do_delete)
- mark_delete(p, false, true, undo);
+ mark_delete(p,
+ aptcfg->FindB(PACKAGE "::Purge-Unused", false),
+ true,
+ undo);
}
}
}
More information about the Aptitude-svn-commit
mailing list