Mailinglist Archive: yast-devel (61 mails)

< Previous Next >
Re: [yast-devel] Possible upgrade problems: Fwd: [zypp-devel] multiple repos per file
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 <zypp/RepoManager.h>
#include <zypp/zypp_detail/ZYppReadOnlyHack.h>

int main( int argc, const char * argv[] )
{
--argc, ++argv;
using namespace zypp;
zypp_readonly_hack::IWantIt();
Pathname root( argc ? argv[0] : "/" );
RepoManager repoManager(( RepoManagerOptions(root) ));
for_( it, repoManager.repoBegin(), repoManager.repoEnd() )
std::cout << *it << std::endl;
return 0;
}
==============================

--

cu,
Michael Andres

+------------------------------------------------------------------+
Key fingerprint = 2DFA 5D73 18B1 E7EF A862 27AC 3FB8 9E3A 27C6 B0E4
+------------------------------------------------------------------+
Michael Andres SUSE LINUX Products GmbH, Development, ma@xxxxxxx
GF:Jeff Hawn,Jennifer Guild,Felix Imend├Ârffer, HRB16746(AG N├╝rnberg)
Maxfeldstrasse 5, D-90409 Nuernberg, Germany, ++49 (0)911 - 740 53-0
+------------------------------------------------------------------+
--
To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: yast-devel+owner@xxxxxxxxxxxx

< Previous Next >