[zypp-devel] Delta management for local patches also?
Hello, since I still connect to the internet by a 56K modem, I developed my own way to perform online updates: I have the openSuSE patches locally stored on my hard disk, and from time to time I connect with rsync to an openSuSE mirror (using option --dry-run) to generate a list of files to retrieve by chance. Once I have fast access (in the CIP pool of the university or at friends), I download these files onto a USB flashdisk (using command wget --mirror -i download.lst) and store them later on my hard disk. So far, so good. However, in order to save disk space, I prefer to retrieve delta patches. And here comes my problem: regardless of the value of 'download.use_deltarpm' in file /etc/zypp/zypp.conf, libzypp always wants to retrieve 'full' patch rpms rather than delta rpms. Actually, I go for that. Until now I helped myself from that situation by using vsftpd, so I made yast2 and zypper believe it would download from a remote ftp server, but in any case I would prefer a way to apply delta rpms even if the source is a local directory. At meanwhile, I wrote some stuff to implement this functionality, it works very well for me. My solution is relatively simple: in /etc/zypp/zypp.conf, I just implemented an additional boolean variable 'use_deltarpm_always' (I do not insist on this name). If its value is set to true, delta rpms will be used even if the repository is a local path. I am aware that this feature is of limited interest in most cases, thus I would appreciate it very much if it could be overtaken. Thanks to a good friend I have a modified specfile and a patch file to be applied on sources 4.27.1 of libzypp. If you are interested, please tell me where I can mail it to. Thanks in advance! Best regards, Axel. P.S.: if you reply by private email, you are of course welcome to write in German! ;-) -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org
Axel C. Frinke wrote:
Hello,
since I still connect to the internet by a 56K modem, I developed my own way to perform online updates: I have the openSuSE patches locally stored on my hard disk, and from time to time I connect with rsync to
Define patches here, you are talking about patches.xml metadata right?
an openSuSE mirror (using option --dry-run) to generate a list of files to retrieve by chance. Once I have fast access (in the CIP pool of the university or at friends), I download these files onto a USB flashdisk (using command wget --mirror -i download.lst) and store them later on my hard disk. So far, so good. However, in order to save disk space, I prefer to retrieve delta patches. And here comes my problem: regardless of the value of 'download.use_deltarpm' in file /etc/zypp/zypp.conf, libzypp always wants to retrieve 'full' patch rpms rather than delta rpms. Actually, I go for that. Until now I helped myself from that situation by using vsftpd, so I made yast2 and zypper believe it would download from a remote ftp server, but in any case I would prefer a way to apply delta rpms even if the source is a local directory.
I suspect you are downloading plain deltarpms without deltarpm metadata. Can you paste the tree of the repository (local) and the value in repos.d how is was added to libzypp? Duncan -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org
On Sun, Sep 14, Axel C. Frinke wrote:
I am aware that this feature is of limited interest in most cases, thus I would appreciate it very much if it could be overtaken.
In fact it is uesefull for testing as no remote repo needs to be involved. If you like to send me your patch, I'll review and apply it. -- cu, Michael Andres +------------------------------------------------------------------+ Key fingerprint = 2DFA 5D73 18B1 E7EF A862 27AC 3FB8 9E3A 27C6 B0E4 +------------------------------------------------------------------+ Michael Andres YaST Development ma@novell.com SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg) Maxfeldstrasse 5, D-90409 Nuernberg, Germany, ++49 (0)911 - 740 53-0 +------------------------------------------------------------------+ -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org
Hallo Michael, On Mon, Sep 15, 2008 at 11:49:59AM +0200, Michael Andres wrote:
In fact it is uesefull for testing as no remote repo needs to be involved. If you like to send me your patch, I'll review and apply it.
Great, thanks once more! I'll send the patch in a separate (private) email to you. BTW, feel free to change the name of 'use_deltarpm_always' to something more senseful! For me this was more a working title, I was just glad to get it running. Best regards, Axel. -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org
participants (3)
-
Axel C. Frinke
-
Duncan Mac-Vicar Prett
-
Michael Andres