Mailinglist Archive: zypp-devel (38 mails)

< Previous Next >
[zypp-devel] [libzyppp-7.4] Cleanup when deleting packages.
  • From: Michael Andres <ma@xxxxxxx>
  • Date: Thu, 29 Apr 2010 17:50:02 +0200
  • Message-id: <201004291750.04090.ma@xxxxxxx>

Hi.

libzyppp-7.4 introduces a new /etc/zypp/zypp.conf option:
##
## Cleanup when deleting packages. Whether the solver should per default
## try to remove packages exclusively required by the ones he's asked to
## delete.
##
## Valid values: boolean
## Default value: false
##
# solver.cleandepsOnRemove = false


The corresponding methods to get/set the option value in zypp::Resolver,
just in case zypper/YaST would like to support this feature:

/**
* Cleanup when deleting packages. Whether the solver should per default
* try to remove packages exclusively required by the ones he's asked to
* delete.
*/
void setCleandepsOnRemove( bool yesno_r );
void setDefaultCleandepsOnRemove(); // set back to default (in zypp.conf)
bool cleandepsOnRemove() const;


The feature is basically usable. Some small piece of code evaluating the
zypp/history, to find out which installed packages were selected by user and
which by the resolver, is missing. This will improve the solver result, and
will be added the next days.

--

cu,
Michael Andres

+------------------------------------------------------------------+
Key fingerprint = 2DFA 5D73 18B1 E7EF A862 27AC 3FB8 9E3A 27C6 B0E4
+------------------------------------------------------------------+
Michael Andres YaST Development ma@xxxxxxxxxx
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg)
Maxfeldstrasse 5, D-90409 Nuernberg, Germany, ++49 (0)911 - 740 53-0
+------------------------------------------------------------------+

--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups