[Bug 727385] New: Keep packages enabled by default on default repositories and on user added repositories
https://bugzilla.novell.com/show_bug.cgi?id=727385 https://bugzilla.novell.com/show_bug.cgi?id=727385#c0 Summary: Keep packages enabled by default on default repositories and on user added repositories Classification: openSUSE Product: openSUSE 12.1 Version: Factory Platform: x86-64 OS/Version: SuSE Other Status: NEW Severity: Major Priority: P5 - None Component: libzypp AssignedTo: zypp-maintainers@forge.provo.novell.com ReportedBy: badshah400@gmail.com QAContact: qa@suse.de Found By: --- Blocker: --- Created an attachment (id=459628) --> (http://bugzilla.novell.com/attachment.cgi?id=459628) Software repositories all with "Keep Packages" enabled User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1 Testing with an installed vbox system using GNOME LiveCD x86_64 from http://download.opensuse.org/factory/iso/12.1/ All three default enabled repositories are configured to "Keep packages" and any repository when added by zypper automatically configures this new repository also to keep packages. This causes rapid consumption of disk space as more and more packages are installed and more repositories added. I don't know if this is by design, but I think this change ought to be reversed (even at this late time for 12.1 too). All repositories should be configured by default not to retain packages post-installation just like it was for 11.4. Reproducible: Always Steps to Reproduce: 1. 2. 3. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=727385 https://bugzilla.novell.com/show_bug.cgi?id=727385#c Atri Bhattacharya <badshah400@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Keep packages enabled by |"Keep packages" enabled by |default on default |default on default |repositories and on user |repositories and on user |added repositories |added repositories -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=727385 https://bugzilla.novell.com/show_bug.cgi?id=727385#c1 Michael Andres <ma@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P2 - High --- Comment #1 from Michael Andres <ma@suse.com> 2011-11-03 10:36:05 CET --- No, that changed by accident and slipped through the tests. Thanks. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=727385 https://bugzilla.novell.com/show_bug.cgi?id=727385#c2 --- Comment #2 from Atri Bhattacharya <badshah400@gmail.com> 2011-11-03 10:21:27 UTC --- If it helps, this is the content of the file /etc/zypp/repos.d/repo-non-oss.repo in my system. Please note that I disabled the repo off manually, otherwise this is one of the repositories enabled in a default installation of openSUSE 12.1 cat /etc/zypp/repos.d/repo-non-oss.repo [repo-non-oss] name=openSUSE-12.1-Non-Oss enabled=0 autorefresh=1 baseurl=http://download.opensuse.org/distribution/12.1/repo/non-oss/ type=yast2 keeppackages=1 -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=727385 https://bugzilla.novell.com/show_bug.cgi?id=727385#c3 Michael Andres <ma@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Michael Andres <ma@suse.com> 2011-11-03 17:34:44 CET --- Zypper does not explicitly request 'keeppackages=0' when creating a repo. zypper will per default create .repo files _without_ any 'keeppackages' line, unless an explicit value was defined by the user. The proper default is then determined by libzypp and this default was faulty; it assumed 'TRUE' for 'http://' repos. This is what I fixed in libzypp-10.3.2 -- But the above .repo file has an explicit 'keeppackages=1'.... After a few tests, it looks to me as if yast is causing this: - When writing back a repo file, yast explicitly sets all values. I.e. yast will explicitly set 'keeppackages' to the default value libzypp provides instaed of leaving it 'undefined'. But with the fix it will be 'keeppackages=0' in the future. - It also looks like yast is always writing back _all_ repo files, even unmodified ones. That's why the faulty value was propagated to all the .repo files. Nevertheless with libzypp-10.3.2 the problem should be fixed. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=727385 https://bugzilla.novell.com/show_bug.cgi?id=727385#c4 Atri Bhattacharya <badshah400@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |VERIFIED --- Comment #4 from Atri Bhattacharya <badshah400@gmail.com> 2011-11-03 17:59:44 UTC --- Yes thanks, Michael! libzypp version 10.3.2 did it. Could you please submit to openSUSE:Factory please? Example for a freshly added repo (using zypper ar -f):- zypper lr Kernel_Head Alias : Kernel_Head Name : Kernel_Head URI : http://download.opensuse.org/repositories/Kernel:/HEAD/openSUSE_Factory/ Enabled : Yes Priority : 99 Auto-refresh : On Keep Packages : Off Type : NONE GPG Check : On GPG Key URI : Path Prefix : Parent Service : MD Cache Path : /var/cache/zypp/raw/Kernel_Head -- 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.
participants (1)
-
bugzilla_noreply@novell.com