Bug 377569

Summary: Opportunity to skip all patch and delta RPMs while updating
Product: [openSUSE] openSUSE 11.2 Reporter: Lars Müller <lmuelle>
Component: YaST2Assignee: Ladislav Slezák <lslezak>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Enhancement    
Priority: P4 - Low CC: benji, dmacvicar, jan, ma
Version: unspecified   
Target Milestone: unspecified   
Hardware: All   
OS: openSUSE 10.3   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Lars Müller 2008-04-07 08:50:08 UTC
I use a local mirror of the update trees.  For space reasons patch and delta RPMs are ignored.

Beside the limited mirror space using a normal RPM is faster.

It might even be a solution to skip delta and patch RPM files if the full patch is found later.  In this case no additional configuration option would be required.

This already works if you 'ignore' the errors caused by by the missing delta and patch RPM files.
Comment 1 Benjamin Weber 2008-04-07 09:00:34 UTC
See /etc/zypp/zypp.conf

Set 

download.use_patchrpm=false
download.use_deltarpm=false

Comment 2 Lars Müller 2008-04-07 09:23:28 UTC
Then the packaging of zypper has to be fixed.  rpm -qc zypper doesn't report /etc/zypp/zypp.conf

Also the man page doesn't provide any information regarding this.
Comment 3 Benjamin Weber 2008-04-07 09:26:26 UTC
The zypper man page does mention /etc/zypp/zypp.conf 

"ZYpp config file (/etc/zypp/zypp.conf)."

Also

benji@lcars:~> rpm -qc libzypp
/etc/zypp/zypp.conf

zypper is not the only thing that uses libzypp.
Comment 4 Lars Müller 2008-04-07 09:32:26 UTC
Ok.  /etc/zypp/zypp.conf belongs to libzypp and there it is packaged as config file.

Independent of this ignoring a missing patch or delta RPM file if the full RPM is available might be an enhancement.  The end user will not care how the system gets to a current state.

And as this is already working if the errors are ignored by hand the implementation shouldn't be hard.
Comment 6 Jan Kupec 2008-04-29 08:35:59 UTC
(In reply to comment #4 from Lars Mueller)
> Independent of this ignoring a missing patch or delta RPM file if the full RPM
> is available might be an enhancement.  The end user will not care how the
> system gets to a current state.

Do you mean via a command line option (for the install/update/dist-upgrade/source-install commands) in zypper?
Comment 7 Lars Müller 2008-04-29 08:52:03 UTC
A command line option would require the knowledge about the option by the user.

I have an automatic mechanism in mind.

a) Try to download delta rpm failed -> try to download patch rpm.
b) Try to download patch rpm failed -> try to download full rpm.
c) If the download of the full rpm failed inform the user.

If a) or b) fails a note in the logs might be useful.
Comment 8 Jan Kupec 2008-04-29 08:56:39 UTC
AFAIK it should already work exactly this way. What behavior do you see?
Comment 9 Lars Müller 2008-04-29 09:07:19 UTC
The opposite.  YaST or which piece in charge of downloading the packages fails if a requested file is missing.

As mentioned before pressing the 'ignore' button shows this approach is already implemented.  But requesting the user to ignore 100 times is no option.  Even asking once would make the hard YaST work flow superfluous harder.
Comment 10 Jan Kupec 2008-04-29 09:37:08 UTC
This is bug. If you can reproduce it, please attach the logs (yast (debug mode) or zypper).
Comment 11 Lars Müller 2008-04-29 10:29:45 UTC
I use a plain openSUSE 10.3.  Please reproduce yourself.  I already spent much to much time on reporting YaST bugs and bugzilla ping pong.
Comment 12 Jan Kupec 2008-04-29 11:09:18 UTC
Sorry, i've forgotten that you removed the patch and delta rpms from your repo, so that's why you are getting the error popups. So this is indeed an enhancement request. The patch/delta rpm handling is currently undergoing a change, so maybe this request could be taken into account in time for 11.0.
Comment 13 Jan Kupec 2008-05-22 11:42:08 UTC
Ah.. i've forgotten about this, i'll do it after 11.0.
Comment 14 Jan Kupec 2008-05-22 11:42:37 UTC
.
Comment 15 Jan Kupec 2008-09-02 08:29:13 UTC
.
Comment 16 Jan Kupec 2009-07-13 18:10:05 UTC
Still in 11.2
Comment 17 Jan Kupec 2009-12-16 13:51:51 UTC
(In reply to comment #4)
> Ok.  /etc/zypp/zypp.conf belongs to libzypp and there it is packaged as config
> file.
> 
> Independent of this ignoring a missing patch or delta RPM file if the full RPM
> is available might be an enhancement.  The end user will not care how the
> system gets to a current state.
> 
> And as this is already working if the errors are ignored by hand the
> implementation shouldn't be hard.

Yes, libzypp just reports the delta download error, but continues afterwards with another delta or the full rpm.

Zypper (2.x.x, maybe also older) already ignores the problemDeltaDownload callback (it only prints the error, does not prompt). Maybe YaST can do the same (simply ignore it), Lado?
Comment 18 Jan Kupec 2009-12-16 14:26:10 UTC
(In reply to comment #17)
> Zypper (2.x.x, maybe also older) already ignores the problemDeltaDownload

i mean 1.2.x, of course
Comment 19 Ladislav Slezák 2010-10-07 07:33:07 UTC
I have checked all problemDeltaDownload callbacks in Yast and fixed one place where it displayed an error popup.

Fixed in yast2-2.20.0 (FACTORY, openSUSE-11.4)
Comment 20 Ladislav Slezák 2010-10-18 15:50:58 UTC
*** Bug 629142 has been marked as a duplicate of this bug. ***
Comment 21 Bernhard Wiedemann 2016-04-15 09:07:21 UTC
This is an autogenerated message for OBS integration:
This bug (377569) was mentioned in
https://build.opensuse.org/request/show/49937 Factory / yast2