https://bugzilla.novell.com/show_bug.cgi?id=679213
https://bugzilla.novell.com/show_bug.cgi?id=679213#c0
Summary: DVD installer generates special/wrong ZYpp's history
or ZYpp doesn't handles well special cases, you decide
Classification: openSUSE
Product: openSUSE 11.4
Version: Final
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: libzypp
AssignedTo: zypp-maintainers@forge.provo.novell.com
ReportedBy: cmorve69@yahoo.es
QAContact: qa@suse.de
CC: coolo@novell.com
Found By: Community User
Blocker: ---
I installed 11.4 from the /var/log/zypp/historyx86-64 DVD without touching the
default package selection.
Now my /var/log/zypp/history file contains this kind of entries
- Installed from an image
<date>|install|<name>|<version>-<release>|<arch>|root@opensuse|InstallationImage|
- Installed during the installation, but not from the image
<date>|install|<name>|<version>-<release>|<arch>|3323:y2base|<repo>|
- Installed during the (manual) configuration part of the DVD installation
(alsa-firmware and awesfx because of my SB Live! sound card)
<date>|install|<name>|<version>-<release>|<arch>|2600:y2base|<repo>|
Notice the different format for the user@host field.
And from libzypp's PoolImpl::onSystemByUserListInit() code it can be seen a
package is identified as selected for installation by the user (so not selected
by cleandepsOnRemove) if the sixth field contains an '@'.
So, from the DVD installation I have that packages
- installed from an image are detected as installed by the user
- not installed from an image are detected as installed only as dependencies of
others
This is incoherent.
But IMHO the fix isn't to make libzypp search also for ':' (perhaps also) but
to fix the history file generation.
When I run YaST software management from the DVD installation (in the summary
screen) I see everything with the "Autoinstall" icon. That's surely wrong.
I don't know how the installer selects which packages to install by default
(CCing coolo). But probably it just selects a few patterns and everything else
is installed as dependency of those patterns? In such a case those patterns
should show the "Install" icon instead of the "Autoinstall" one. And those
patterns should be the only packages that have a sixth field (user) in the
final history file. Right now all my patterns are selected as installed by
"3323:y2base". Since it contains no '@' they aren't protected from
cleandepsOnRemove.
As an example:
- zypper rm -U patterns-openSUSE-enhanced_base only removes 12 packages. All of
them are patterns-openSUSE-* packages that require
patterns-openSUSE-enhanced_base.
- zypper rm -u patterns-openSUSE-enhanced_base removes 54 packages, 16 of them
patterns-openSUSE-*. Two of them are apparmor patterns, from where the
apparmor-docs package is also removed.
If I change 3323:y2base to 3323@y2base for patterns-openSUSE-apparmor_opt and
patterns-openSUSE-apparmor
- zypper rm -u patterns-openSUSE-enhanced_base removes 51 packages. The
apparmor ones now aren't deleted.
The other case is also true. Since all the packages installed from an image are
marked as selected by an user, cleandepsOnRemove sometimes will not uninstall
them even if it should.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.