Re: building plugin that simulates repository...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Why not just make a repo out of your RPM's ?

“Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.”
Bill Waterson (Calvin & Hobbes)

----- Dmitry Makovey <dmitry@xxxxxxxxxxxxx> wrote:
> 
> Hi,
> 
> I'm trying to build a plugin that would dynamically "inject" local 
> "repositories" (which are nothing more than collections of RPM files) but I 
> keep on bumping into problems. Latest one is:
> 
> File "/usr/lib/python2.4/site-packages/yum/packages.py", line 1145, in 
> __getattr__
>     return self.hdr[thing]
> KeyError: 'unknown header tag'
> 
> What I'm trying to do is bridge CPacMan and Yum via plugin. CPacMan has it's 
> own concept of "repos" which could be local caches of Yum repos or just 
> directories with RPMs etc. What I want to do with this plugin is to wrap some 
> of those repos CPacMan has (based on certain criteria) and present them to Yum 
> as valid repos making operations of package install much more seamless etc. I 
> didn't want to create 1:1 relationship between CPacMan repo and Yum repo, I 
> also realize that is something that RedHat is already doing with RHN plugin. 
> However instead of trying to cut through the RH code I'd like to get some 
> clean sample of plugin generating dynamic repo "in-memory" rather than what 
> one of the examples shows - creating temp repo definition and pointing it to 
> the directory subsequently doing "createrepo" on it. 
> 
> I'm attaching my (oversimplified) attempt of doing so, hoping that somebody 
> can point me at missing bits and pieces (or maybe point me in the right 
> direction?). I intentionally removed most of the CPacMan logic to make it more 
> yum-specific excercise (full, and "ugly" version of it is here: 
> http://cpacman.svn.sourceforge.net/viewvc/cpacman/cpacman-
> yum/trunk/cpacman_yum.py?revision=238&view=markup )
> 
> Any help is highly appreciated. 
> 
> -- 
> Dmitry Makovey
> Web Systems Administrator
> Athabasca University
> (780) 675-6245
> ---
> Confidence is what you have before you understand the problem
>     Woody Allen
> 
> When in trouble when in doubt run in circles scream and shout 
>      http://www.wordwizard.com/phpbb3/viewtopic.php?f=16&t=19330

_______________________________________________
Yum mailing list
Yum@xxxxxxxxxxxxxxxxx
http://lists.baseurl.org/mailman/listinfo/yum



[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux