[zypp-devel] DownloadInAdvance and deltas
Hi, Just noticed the following while trying a repo with deltarpms and DownloadInAdvance enabled: When DownloadInAdvance is enabled, everything is done twice, for every package, so basically Overall download size: 3.5 MiB. After the operation, additional 457.0 KiB will be used. Continue? [y/n/?] (y): y Retrieving package mx-1.0.1-2.1.i586 (1/2), 298.0 KiB (722.0 KiB unpacked) Retrieving delta: ./drpms/mx-1.0.0-1.3_1.0.1-2.1.i586.drpm, 30.0 KiB Retrieving: mx-1.0.0-1.3_1.0.1-2.1.i586.drpm [done] Applying delta: ./mx-1.0.0-1.3_1.0.1-2.1.i586.drpm [done] Retrieving package gthumb-2.11.3-2.1.i586 (2/2), 3.2 MiB (8.0 MiB unpacked) Retrieving delta: ./drpms/gthumb-2.10.11-1.4_2.11.3-2.1.i586.drpm, 1.8 MiB Retrieving: gthumb-2.10.11-1.4_2.11.3-2.1.i586.drpm [done (283.7 KiB/s)] Applying delta: ./gthumb-2.10.11-1.4_2.11.3-2.1.i586.drpm [done] Retrieving package mx-1.0.1-2.1.i586 (1/2), 298.0 KiB (722.0 KiB unpacked) Retrieving delta: ./drpms/mx-1.0.0-1.3_1.0.1-2.1.i586.drpm, 30.0 KiB Applying delta: ./mx-1.0.0-1.3_1.0.1-2.1.i586.drpm [done] Installing: mx-1.0.1-2.1 [done] Retrieving package gthumb-2.11.3-2.1.i586 (2/2), 3.2 MiB (8.0 MiB unpacked) Retrieving delta: ./drpms/gthumb-2.10.11-1.4_2.11.3-2.1.i586.drpm, 1.8 MiB Applying delta: ./gthumb-2.10.11-1.4_2.11.3-2.1.i586.drpm [done] Installing: gthumb-2.11.3-2.1 [done] Without DownloadInAdvance: Overall download size: 3.5 MiB. After the operation, additional 457.0 KiB will be used. Continue? [y/n/?] (y): y Retrieving package mx-1.0.1-2.1.i586 (1/2), 298.0 KiB (722.0 KiB unpacked) Retrieving delta: ./drpms/mx-1.0.0-1.3_1.0.1-2.1.i586.drpm, 30.0 KiB Retrieving: mx-1.0.0-1.3_1.0.1-2.1.i586.drpm [done] Applying delta: ./mx-1.0.0-1.3_1.0.1-2.1.i586.drpm [done] Installing: mx-1.0.1-2.1 [done] Retrieving package gthumb-2.11.3-2.1.i586 (2/2), 3.2 MiB (8.0 MiB unpacked) Retrieving delta: ./drpms/gthumb-2.10.11-1.4_2.11.3-2.1.i586.drpm, 1.8 MiB Retrieving: gthumb-2.10.11-1.4_2.11.3-2.1.i586.drpm [done (249.6 KiB/s)] Applying delta: ./gthumb-2.10.11-1.4_2.11.3-2.1.i586.drpm [done] Installing: gthumb-2.11.3-2.1 [done] and done.. Any idea what is going on...? Anas -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org
On Tuesday 18 May 2010 06:44:07 Anas Nashif wrote:
Just noticed the following while trying a repo with deltarpms and DownloadInAdvance enabled:
When DownloadInAdvance is enabled, everything is done twice, for every package, so basically ... Any idea what is going on...?
If available, please send me the zypper.log. -- 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
Hi Michael both cases attached. Anas On 2010-05-18, at 5:53 AM, Michael Andres wrote:
On Tuesday 18 May 2010 06:44:07 Anas Nashif wrote:
Just noticed the following while trying a repo with deltarpms and DownloadInAdvance enabled:
When DownloadInAdvance is enabled, everything is done twice, for every package, so basically ... Any idea what is going on...?
If available, please send me the zypper.log.
--
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
On Tuesday 18 May 2010 16:46:48 Anas Nashif wrote:
Hi Michael
both cases attached.
I'll provide a fix ASAP. There's a strange 'if' in the code that prevents the .rpm from being moved to the package cache, if the downloaded .drpm is not a temporary. The .rpm is built in /var/tmp instead. Later when trying to install, the .rpm is not found in the cache, so it's built again. The 'Retrieving delta' message is a bit missleading as the .drpm is in the cache. Just 'applydeltarpm' is executed a second time and the .rpm stays off the cache. A workaround might be to disable the repositories package cache: zypper mr --no-keep-packages --all At least for repos providing deltas. The .drpm will be a temporary then, so the the package should be available in the cache until it gets installed. -- cu, Michael Andres +------------------------------------------------------------------+ Key fingerprint = 2DFA 5D73 18B1 E7EF A862 27AC 3FB8 9E3A 27C6 B0E4 +------------------------------------------------------------------+ Michael Andres ZYPP Development ma@suse.de 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
On Wednesday 19 May 2010 16:54:38 Michael Andres wrote:
A workaround might be to disable the repositories package cache: zypper mr --no-keep-packages --all At least for repos providing deltas. The .drpm will be a temporary then, so the the package should be available in the cache until it gets installed.
JFYI: Fixed in libzypp-6.33.1 (libzypp-7.7.1 for 11.3) (https://bugzilla.novell.com/show_bug.cgi?id=607583) -- cu, Michael Andres +------------------------------------------------------------------+ Key fingerprint = 2DFA 5D73 18B1 E7EF A862 27AC 3FB8 9E3A 27C6 B0E4 +------------------------------------------------------------------+ Michael Andres ZYPP Development ma@suse.de 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
On 2010-05-20, at 3:23 PM, Michael Andres wrote:
On Wednesday 19 May 2010 16:54:38 Michael Andres wrote:
A workaround might be to disable the repositories package cache: zypper mr --no-keep-packages --all At least for repos providing deltas. The .drpm will be a temporary then, so the the package should be available in the cache until it gets installed.
JFYI: Fixed in libzypp-6.33.1 (libzypp-7.7.1 for 11.3) (https://bugzilla.novell.com/show_bug.cgi?id=607583)
Thanks. Anas
--
cu, Michael Andres
+------------------------------------------------------------------+ Key fingerprint = 2DFA 5D73 18B1 E7EF A862 27AC 3FB8 9E3A 27C6 B0E4 +------------------------------------------------------------------+ Michael Andres ZYPP Development ma@suse.de 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
-- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org
participants (2)
-
Anas Nashif
-
Michael Andres