Here it is:

https://bugzilla.redhat.com/show_bug.cgi?id=590340

I sent a patch upstream too but after browsing the sources I don't see my 
changes. My patch is attached, Doug's should work too.

- Jay



----- "Jay Greguske" <[email protected]> wrote:

> Is yum up to date? We saw this error briefly too, but it went away
> once it was corrected in that package. I'll see if I can dig up the
> bugzilla...
> 
> 
> 
> 
> ----- "Doug Reiland" <[email protected]> wrote:
> 
> > I started to get errors trying to do a koji spin-livecd
> >
> > In my mock directory, under tmp/koji-livecd. I am seeing a directory
> > called "installed" show up. It doesn't have a packages subdirectory
> > so
> > os.listdirs generates a fault.
> >
> >
> > --- /usr/sbin/kojid 2010-06-04 13:54:50.773811154 -0400
> > +++ /tmp/kojid      2010-06-04 13:54:42.235810018 -0400
> > @@ -2386,9 +2386,6 @@
> >                  pkgpath = os.path.join(broot.rootdir(),
> cachedir[1:],
> > repo,
> >                                         'packages')
> >
> > -                   if not os.path.exists(pkgpath):
> > -                   continue
> > -
> >                  pkgs = os.listdir(pkgpath)
> >                  for pkg in pkgs:
> >                      pkgfile = os.path.join(pkgpath, pkg)
> > --
> > buildsys mailing list
> > [email protected]
> > https://admin.fedoraproject.org/mailman/listinfo/buildsys
>From 37111a68ada461b95e878dd96524d5d3804f00d2 Mon Sep 17 00:00:00 2001
From: Jay Greguske <[email protected]>
Date: Wed, 12 May 2010 13:25:10 -0400
Subject: [PATCH] only koji repo directories are considered when scraping yum cache

---
 builder/kojid |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/builder/kojid b/builder/kojid
index cb44779..4044c52 100755
--- a/builder/kojid
+++ b/builder/kojid
@@ -2298,6 +2298,7 @@ class ImageTask(BaseTaskHandler):
         fields = ['name', 'version', 'release', 'epoch', 'arch', \
                   'buildtime', 'sigmd5']
         for repo in repos:
+            if not repo.startswith('koji-'): continue # we only want repo dirs
             pkgpath = os.path.join(cachepath, repo, 'packages')
             pkgs = os.listdir(pkgpath)
             for pkg in pkgs:
-- 
1.6.6.1

--
buildsys mailing list
[email protected]
https://admin.fedoraproject.org/mailman/listinfo/buildsys

Reply via email to