From d34dc9f2a1cd63fc90d6c06aef030ff095f37c24 Mon Sep 17 00:00:00 2001 From: Seth Vidal Date: Mon, 7 Jan 2008 11:12:17 -0500 Subject: [PATCH] - make rpmbuild work - mark a fixme --- createrepo.spec | 2 +- genpkgmetadata.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/createrepo.spec b/createrepo.spec index 969ad95..73949d5 100644 --- a/createrepo.spec +++ b/createrepo.spec @@ -22,7 +22,7 @@ rpm packages %install [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT -%makeinstall +make DESTDIR=$RPM_BUILD_ROOT install %clean [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT diff --git a/genpkgmetadata.py b/genpkgmetadata.py index 6e43aa6..6b3bd7f 100755 --- a/genpkgmetadata.py +++ b/genpkgmetadata.py @@ -16,7 +16,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # Copyright 2004 Duke University - +# Portions Copyright 2007 Red Hat, Inc - written by seth vidal skvidal at fedoraproject.org import os import sys @@ -148,7 +148,7 @@ def parseArgs(args, conf): def main(args): conf = createrepo.MetaDataConfig() conf = parseArgs(args, conf) - + # FIXME - some of these should be moved into the module and out of the cli routines testdir = os.path.realpath(os.path.join(conf.basedir, conf.directory)) # start the sanity/stupidity checks if not os.path.exists(testdir): -- 2.34.1