Bug 721810

Summary: [yast2-qt-pkg] "Ignore recommended packages for already installed packages" option block mp3 and flash installation
Product: [openSUSE] openSUSE 12.1 Reporter: Guillaume GARDET <guillaume.gardet>
Component: YaST2Assignee: Thomas Göttlicher <tgoettlicher>
Status: VERIFIED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Major    
Priority: P3 - Medium CC: ftake, martin.schlander, tgoettlicher
Version: Beta 1   
Target Milestone: ---   
Hardware: i686   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Guillaume GARDET 2011-10-03 15:05:06 UTC
User-Agent:       Mozilla/5.0 (X11; Linux i686; rv:7.0) Gecko/20100101 Firefox/7.0

The "Ignore recommended packages for already installed packages" option in YaST software manager is checked by default and thus updating the system does not install flash and mp3 support as it was the case before.

Reproducible: Always

Steps to Reproduce:
1. Launch YaST software manager
2. See that "Ignore recommended packages for already installed packages" option is checked in option menu
3. Try to update
4. nothing to update
5. uncheck the option
6. Try to update
7. flash and mp3 support (and few other things) are added to be installed
Actual Results:  
No flash nor mp3 installation during the first update

Expected Results:  
Flash and mp3 support auto added for installation during the first update

It is very annoying, especially for Linux/openSUSE beginners.
Comment 1 Martin Schlander 2011-10-06 20:52:05 UTC
This new behaviour also leads to serious problems with installing translations.

If I do a livecd/usb install and select e.g. Danish during install, the translations are not automatically installed on the first run of sw_single like they used to be in earlier openSUSE versions.

Even if I go to the "Languages" view in sw_single and select "DA / Danish", none of the packages in the view will be selected for installation unless I uncheck "Ignore recommended packages for already installed packages" first.
Comment 2 Martin Schlander 2011-10-09 08:30:57 UTC
I noticed another problem related to this.

On my liveusb installation, I download opera.rpm from opera.com, click on it to test installation of local RPMs with KPackageKit. 

Result: (K)PackageKit wants to install all the "recommended" packages.

It would seem PackageKit is "out of sync" with the new default YaST behaviour.
Comment 3 Thomas Göttlicher 2011-10-11 10:36:42 UTC
The QT package selector uses the default provided by libzypp:
zypp::getZYpp()->resolver()->ignoreAlreadyRecommended()

Reassigning to zypp maintainers.
Comment 4 Michael Andres 2011-10-12 10:01:24 UTC
Right, the libzypp default is 'true', because we don't do any changes to the system without request. This will not change.


But it still is an option, so the application can adjust it according to it's needs: 

  zypp::getZYpp()->resolver()->setIgnoreAlreadyRecommended( bool yesno_r );

Zypper AFAIK leaves it on when installing/updating specific packages ('zypper in xteddy' should not update flash or something similar). When doing global updates (dup/up) it's turned off.


For the YAST UI it's probably not that easy. People complained about packages being automatically selected when entering the software selection. Now they complain that this does not happen ;)

My suggestion would be to do an initial solver run if nothing is selected and with ignoreAlreadyRecommended=FALSE. If this selects some packages present the list on the initial screen and ask whether to keep those recommendations or to skip them for now. Then adjust the option accordingly. If the user requests to perform an update turn it off.
Comment 5 Michael Andres 2011-10-24 10:23:15 UTC
*** Bug 722739 has been marked as a duplicate of this bug. ***
Comment 6 Thomas Göttlicher 2011-10-24 13:43:59 UTC
fixed in yast2-qt-pkg-2.21.12
Comment 7 Martin Schlander 2011-11-19 13:10:02 UTC
Not fixed in 12.1 final.

YaST sw_single still defaults to ignoring recommended packages.

Seemingly causing all kinds of issues with pullin-packages, language installation, tons of things missing on livecd installs and so forth.
Comment 8 Thomas Göttlicher 2012-01-19 16:32:47 UTC
The default for ignoreAlreadyRecommendAction has been changed to false in yast2-qt-pkg 2.21.15.