Bug 689002

Summary: kpackagekit clears yast protected flag
Product: [openSUSE] openSUSE 11.4 Reporter: Alin M Elena <alinm.elena>
Component: libzyppAssignee: E-mail List <zypp-maintainers>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P1 - Urgent CC: wstephenson
Version: Factory   
Target Milestone: ---   
Hardware: x86-64   
OS: SUSE Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Alin M Elena 2011-04-21 07:47:21 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-GB) AppleWebKit/533.3 (KHTML, like Gecko) rekonq Safari/533.3

after using kpackagekit to update the system all the packages which previously were set as protected in yast now have the protected flag removed.


to reproduce.

1. set a package as protected in yast...
2. update the system with packagekit...
3. check in yast the package that you protected and the flag is gone...

[alin@abbaton:~]: zypper se -is package
Loading repository data...
Reading installed packages...

S | Name                                | Type    | Version      | Arch   | Repository 
--+-------------------------------------+---------+--------------+--------+------------
i | PackageKit                          | package | 0.6.12-3.1   | x86_64 | factory_oss
i | PackageKit-branding-upstream        | package | 0.6.12-3.1   | x86_64 | factory_oss
i | PackageKit-browser-plugin           | package | 0.6.12-3.1   | x86_64 | factory_oss
i | PackageKit-gstreamer-plugin         | package | 0.6.12-3.1   | x86_64 | factory_oss
i | jpackage-utils                      | package | 1.7.5-21.7   | x86_64 | factory_oss
i | kpackagekit                         | package | 0.6.3.3-13.1 | x86_64 | factory_oss
i | libpackagekit-glib2-14              | package | 0.6.12-3.1   | x86_64 | factory_oss
i | libpackagekit-qt14                  | package | 0.6.12-3.1   | x86_64 | factory_oss
i | update-test-affects-package-manager | package | 0-12.1       | noarch | factory_oss
i | yast2-metapackage-handler           | package | 0.8.11-1.2   | noarch | factory_oss
i | yast2-packager                      | package | 2.20.15-2.1  | x86_64 | factory_oss
i | yast2-packager-webpin               | package | 2.20.15-2.1  | x86_64 | factory_oss

[alin@abbaton:~]: zypper se -is yast
Loading repository data...
Reading installed packages...

S | Name                               | Type    | Version     | Arch   | Repository                                                                                                         
--+------------------------------------+---------+-------------+--------+------------                                                                                                        
i | autoyast2-installation             | package | 2.20.9-2.1  | noarch | factory_oss                                                                                                        
i | patterns-openSUSE-yast2_basis      | package | 11.4-11.1   | x86_64 | factory_oss                                                                                                        
i | patterns-openSUSE-yast2_install_wf | package | 11.4-11.1   | x86_64 | factory_oss                                                                                                        
i | yast2                              | package | 2.20.12-2.2 | x86_64 | factory_oss                                                                                                        
i | yast2-add-on                       | package | 2.18.3-7.1  | noarch | factory_oss                                                                                                        
i | yast2-apparmor                     | package | 2.20.1-2.1  | noarch | factory_oss                                                                                                        
i | yast2-backup                       | package | 2.20.2-4.1  | noarch | factory_oss                                                                                                        
i | yast2-bootloader                   | package | 2.20.1-2.2  | x86_64 | factory_oss                                                                                                        
i | yast2-branding-openSUSE            | package | 2.18.0-7.1  | noarch | factory_oss                                                                                                        
i | yast2-ca-management                | package | 2.19.5-6.1  | noarch | factory_oss
i | yast2-control-center               | package | 2.20.2-2.1  | x86_64 | factory_oss
i | yast2-control-center-qt            | package | 2.20.2-2.1  | x86_64 | factory_oss
i | yast2-core                         | package | 2.21.0-2.1  | x86_64 | factory_oss
i | yast2-country                      | package | 2.20.6-2.2  | x86_64 | factory_oss
i | yast2-country-data                 | package | 2.20.6-2.2  | x86_64 | factory_oss
i | yast2-dbus-client                  | package | 2.18.0-7.7  | x86_64 | factory_oss
i | yast2-firewall                     | package | 2.19.1-3.6  | noarch | factory_oss
i | yast2-hardware-detection           | package | 2.17.1-10.1 | x86_64 | factory_oss
i | yast2-inetd                        | package | 2.17.3-8.2  | noarch | factory_oss
i | yast2-installation                 | package | 2.21.1-2.1  | noarch | factory_oss
i | yast2-irda                         | package | 2.19.1-5.1  | noarch | factory_oss
i | yast2-iscsi-client                 | package | 2.20.0-2.2  | noarch | factory_oss
i | yast2-kerberos-client              | package | 2.21.1-2.1  | noarch | factory_oss
i | yast2-ldap                         | package | 2.21.0-2.1  | x86_64 | factory_oss
i | yast2-ldap-client                  | package | 2.21.4-2.1  | noarch | factory_oss
i | yast2-libyui                       | package | 2.20.2-2.1  | x86_64 | factory_oss
i | yast2-mail                         | package | 2.20.0-2.1  | noarch | factory_oss
i | yast2-metapackage-handler          | package | 0.8.11-1.2  | noarch | factory_oss
i | yast2-mouse                        | package | 2.18.2-7.1  | x86_64 | factory_oss
i | yast2-ncurses                      | package | 2.21.0-2.1  | x86_64 | factory_oss
i | yast2-ncurses-pkg                  | package | 2.20.3-5.1  | x86_64 | factory_oss
i | yast2-network                      | package | 2.20.10-5.1 | x86_64 | factory_oss
i | yast2-nfs-client                   | package | 2.19.3-3.3  | noarch | factory_oss
i | yast2-nfs-common                   | package | 2.18.1-7.4  | noarch | factory_oss
i | yast2-nis-client                   | package | 2.21.0-2.1  | x86_64 | factory_oss
i | yast2-ntp-client                   | package | 2.20.2-4.1  | noarch | factory_oss
i | yast2-online-update                | package | 2.21.0-2.1  | noarch | factory_oss
i | yast2-online-update-frontend       | package | 2.21.0-2.1  | noarch | factory_oss
i | yast2-packager                     | package | 2.20.15-2.1 | x86_64 | factory_oss
i | yast2-packager-webpin              | package | 2.20.15-2.1 | x86_64 | factory_oss
i | yast2-pam                          | package | 2.20.1-2.1  | noarch | factory_oss
i | yast2-perl-bindings                | package | 2.19.1-5.8  | x86_64 | factory_oss
i | yast2-pkg-bindings                 | package | 2.20.3-2.4  | x86_64 | factory_oss
i | yast2-power-management             | package | 2.18.1-7.1  | noarch | factory_oss
i | yast2-printer                      | package | 2.20.8-1.1  | x86_64 | factory_oss
i | yast2-qt                           | package | 2.20.7-2.1  | x86_64 | factory_oss
i | yast2-qt-graph                     | package | 2.19.0-3.9  | x86_64 | factory_oss
i | yast2-qt-pkg                       | package | 2.20.3-2.2  | x86_64 | factory_oss
i | yast2-restore                      | package | 2.19.0-5.1  | noarch | factory_oss
i | yast2-runlevel                     | package | 2.20.1-2.1  | noarch | factory_oss
i | yast2-samba-client                 | package | 2.21.2-2.1  | noarch | factory_oss
i | yast2-samba-server                 | package | 2.21.1-2.1  | noarch | factory_oss
i | yast2-scanner                      | package | 2.20.1-2.1  | x86_64 | factory_oss
i | yast2-security                     | package | 2.21.0-2.1  | noarch | factory_oss
i | yast2-slp                          | package | 2.16.0-88.7 | x86_64 | factory_oss
i | yast2-sound                        | package | 2.20.2-5.1  | x86_64 | factory_oss
i | yast2-storage                      | package | 2.20.5-2.2  | x86_64 | factory_oss
i | yast2-sudo                         | package | 2.18.2-7.2  | noarch | factory_oss
i | yast2-sysconfig                    | package | 2.17.0-64.2 | noarch | factory_oss
i | yast2-theme-openSUSE               | package | 2.20.3-2.1  | noarch | factory_oss
i | yast2-theme-openSUSE-Crystal       | package | 2.20.3-2.1  | noarch | factory_oss
i | yast2-trans-en_GB                  | package | 2.19.0-36.1 | noarch | factory_oss
i | yast2-trans-stats                  | package | 2.19.0-3.6  | noarch | factory_oss
i | yast2-transfer                     | package | 2.18.0-8.8  | x86_64 | factory_oss
i | yast2-tune                         | package | 2.20.1-2.1  | x86_64 | factory_oss
i | yast2-update                       | package | 2.19.1-5.2  | x86_64 | factory_oss
i | yast2-users                        | package | 2.21.3-2.1  | x86_64 | factory_oss
i | yast2-vm                           | package | 2.17.1-2.1  | x86_64 | factory_oss
i | yast2-xml                          | package | 2.16.1-61.8 | x86_64 | factory_oss
i | yast2-ycp-ui-bindings              | package | 2.20.3-2.1  | x86_64 | factory_oss
i | yast2_basis                        | pattern | 11.4-11.1   | x86_64 | factory_oss
i | yast2_basis                        | pattern | 11.4-11.1   | i586   | factory_oss
i | yast2_install_wf                   | pattern | 11.4-11.1   | x86_64 | factory_oss
i | yast2_install_wf                   | pattern | 11.4-11.1   | i586   | factory_oss





Reproducible: Always

Steps to Reproduce:
1.
2.
3.
Comment 1 Will Stephenson 2011-11-24 09:04:29 UTC
I don't see how kpackagekit/Apper can know about zypp locks - it must be in the zypp backend to PK.
Comment 2 Michael Andres 2011-12-07 08:14:55 UTC
Please attach the PackageKit logfile (/var/log/pk_backend_zypp).
Comment 3 Alin M Elena 2011-12-07 10:09:59 UTC
Hi I am not using package kit anymore and not even apper... not even installed on my machine... 
This bug is so old that I doubt it is still valid.

Alin
Comment 4 Michael Andres 2011-12-07 10:21:49 UTC
Ooops, I looked at the last comments date. 

IMO this is actually 11.4 (PackageKit-0.6.12).
Fixed in PackageKit-0.6.15

*** This bug has been marked as a duplicate of bug 690038 ***