[Yum-devel] [PATCH] yum-src people
Panu Matilainen
pmatilai at welho.com
Mon Mar 21 19:58:43 UTC 2005
On Fri, 2005-03-18 at 01:03 -0500, seth vidal wrote:
> > I take that as an preliminary "ok" for a patch implementing the builddeps
> > operation cleanly in yum?
> >
> > I'll have a look next week (other stuff to do on weekend) unless somebody
> > gets there first of course :)
>
> yah.
Well, here's my first take on this, works for both local src.rpm's and
repodata info - do you think this is acceptable?
The fixme comment is about this traceback on packages not found - I
don't really want to be catching IndexError from inside sqlitesack for
that, shouldn't sqlitesack be raising some yum.Errors exception there?
[root at chip yum]# ./yummain.py builddep blah
Searching Packages for Build Dependencies:
Setting up Repos
updates-released 100% |=========================| 951 B
00:00
updates-testing 100% |=========================| 951 B
00:00
extras 100% |=========================| 951 B
00:00
base 100% |=========================| 1.1 kB
00:00
freshrpms 100% |=========================| 951 B
00:00
Reading repository metadata in from local files
Traceback (most recent call last):
File "./yummain.py", line 180, in ?
main(sys.argv[1:])
File "./yummain.py", line 72, in main
result, resultmsgs = do()
File "/home/pmatilai/repos/yum/cli.py", line 483, in doCommands
return self.installBuildDeps()
File "/home/pmatilai/repos/yum/cli.py", line 1209, in installBuildDeps
srpm = self.pkgSack.returnNewestByNameArch((arg, 'src'))
File "/home/pmatilai/repos/yum/yum/sqlitesack.py", line 411, in
returnNewestByNameArch
newest = allpkg.pop()
IndexError: pop from empty list
-------------- next part --------------
A non-text attachment was scrubbed...
Name: yum-builddeps.patch
Type: text/x-patch
Size: 4113 bytes
Desc: not available
Url : http://lists.baseurl.org/pipermail/yum-devel/attachments/20050321/dfe60ea3/attachment.bin
More information about the Yum-devel
mailing list