From: Seth Vidal Date: Mon, 7 Jan 2008 16:12:17 +0000 (-0500) Subject: - make rpmbuild work X-Git-Tag: upstream/0.9.9~183 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d34dc9f2a1cd63fc90d6c06aef030ff095f37c24;p=tools%2Fcreaterepo.git - make rpmbuild work - mark a fixme --- 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):