From d376426856a092a44635c6616ba72c8d1a2e3444 Mon Sep 17 00:00:00 2001 From: Andreas Hasenack Date: Thu, 30 Nov 2006 21:53:14 +0000 Subject: - use svn export instead of checkout, saves 50% disk space --- RepSys/log.py | 3 ++- RepSys/rpmutil.py | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/RepSys/log.py b/RepSys/log.py index d1e2a59..152abb0 100644 --- a/RepSys/log.py +++ b/RepSys/log.py @@ -199,7 +199,8 @@ def make_release(author=None, revision=None, date=None, lines=None, entries=[], released=True, version=None, release=None): rel = _Release() rel.author = author - rel.author_name, rel.author_email = get_author_name(author) + if author: + rel.author_name, rel.author_email = get_author_name(author) rel.revision = revision rel.version = version rel.release = release diff --git a/RepSys/rpmutil.py b/RepSys/rpmutil.py index 4ae007d..872dc99 100644 --- a/RepSys/rpmutil.py +++ b/RepSys/rpmutil.py @@ -57,7 +57,7 @@ def get_srpm(pkgdirurl, geturl = os.path.join(pkgdirurl, "current") else: raise Error, "unsupported get_srpm mode: %s" % mode - svn.checkout(geturl, tmpdir, rev=revision) + svn.export(geturl, tmpdir, rev=revision) srpmsdir = os.path.join(tmpdir, "SRPMS") os.mkdir(srpmsdir) specsdir = os.path.join(tmpdir, "SPECS") @@ -69,7 +69,7 @@ def get_srpm(pkgdirurl, submit = not not revision specfile_svn2rpm(pkgdirurl, spec, revision, submit=submit, template=template) - revisionreal = svn.revision(tmpdir) + revisionreal = svn.revision(pkgdirurl) for script in scripts: status, output = execcmd(script, tmpdir, spec, str(revision), noerror=1) -- cgit v1.2.1