[yast-devel] Possible upgrade problems: Fwd: [zypp-devel] multiple repos per file
Hi guys,
Currently just FYI, during upgrade, Yast reads repo files in
/etc/zypp/repos.d and gets list of repos from them (or sometimes removes
them).
Olaf has more repos in one file and according to Michael, this is
supported by libzypp. But I'm afraid it's completely unsupported in Yast.
Bye
Lukas
BTW: reported as http://bugzilla.opensuse.org/show_bug.cgi?id=900232
-------- Forwarded Message --------
Subject: Re: [zypp-devel] multiple repos per file
Date: Mon, 6 Oct 2014 10:07:48 +0200
From: Michael Andres
Is it supported to have more than one repo per file?
Yes.
An upgrade attempt to factory fails because it lists only 'factory-debug' from /etc/zypp/repos.d/factory.repo.
Who lists only...?
If its supported I will file a yast bug, or whatever component parses the *.repo files.
The *.repo files are usually parsed libzypp. But your zypper command lists your 3 repos in factory.repo as expected: -- Lukas Ocilka, Systems Management (Yast) Team Leader Cloud & Systems Management Department, SUSE Linux -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org To contact the owner, e-mail: yast-devel+owner@opensuse.org
Yes,
current parser is quite stupid. ( it is special YaST agent) -
https://github.com/yast/yast-installation/blob/master/src/clients/inst_upgra...
https://github.com/yast/yast-packager/blob/6e83a76d1022eba37008e092a2beccb54...
https://github.com/yast/yast-packager/blob/6e83a76d1022eba37008e092a2beccb54...
( so only one entry is extracted ). I think it is quite easy to fix,
just slightly change logic in perl agent.
So YAB (Yet Another Bug).
Josef
On Fri, 10 Oct 2014 09:00:35 +0200
Lukas Ocilka
Hi guys,
Currently just FYI, during upgrade, Yast reads repo files in /etc/zypp/repos.d and gets list of repos from them (or sometimes removes them).
Olaf has more repos in one file and according to Michael, this is supported by libzypp. But I'm afraid it's completely unsupported in Yast.
Bye Lukas
BTW: reported as http://bugzilla.opensuse.org/show_bug.cgi?id=900232
-------- Forwarded Message -------- Subject: Re: [zypp-devel] multiple repos per file Date: Mon, 6 Oct 2014 10:07:48 +0200 From: Michael Andres
To: zypp-devel@opensuse.org CC: Olaf Hering On Thursday 02 October 2014 18:30:45 Olaf Hering wrote:
Is it supported to have more than one repo per file?
Yes.
An upgrade attempt to factory fails because it lists only 'factory-debug' from /etc/zypp/repos.d/factory.repo.
Who lists only...?
If its supported I will file a yast bug, or whatever component parses the *.repo files.
The *.repo files are usually parsed libzypp. But your zypper command lists your 3 repos in factory.repo as expected:
-- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org To contact the owner, e-mail: yast-devel+owner@opensuse.org
On Friday 10 October 2014 14:51:23 Josef Reidinger wrote:
Yes, current parser is quite stupid. ( it is special YaST agent) - https://github.com/yast/yast-installation/blob/master/src/clients/inst_upgr ade_urls.rb#L192 https://github.com/yast/yast-packager/blob/6e83a76d1022eba37008e092a2beccb5 4858b0c7/src/scrconf/zypp_repos.scr https://github.com/yast/yast-packager/blob/6e83a76d1022eba37008e092a2beccb5 4858b0c7/src/servers_non_y2/ag_zypp_repos#L49 ( so only one entry is extracted ). I think it is quite easy to fix, just slightly change logic in perl agent.
Keep in mind, that we also support using repo variables and we will support
multiple base urls...
Is there no chance for you to use libzypp e.g. via pkg-bindings?
Scanning the repos below a root directory is not very hard:
==============================
#include <iostream>
#include
participants (3)
-
Josef Reidinger
-
Lukas Ocilka
-
Michael Andres