aboutsummaryrefslogtreecommitdiffstats
path: root/RepSys/rpmutil.py
diff options
context:
space:
mode:
authorAndreas Hasenack <andreas@mandriva.com>2006-11-30 21:53:14 +0000
committerAndreas Hasenack <andreas@mandriva.com>2006-11-30 21:53:14 +0000
commitd376426856a092a44635c6616ba72c8d1a2e3444 (patch)
tree30d2caba825c3450182965b40c58afa702e4f2a8 /RepSys/rpmutil.py
parenta7c361fa2cc9546d95583ffd3d60fe78381f44f2 (diff)
downloadmgarepo-d376426856a092a44635c6616ba72c8d1a2e3444.tar
mgarepo-d376426856a092a44635c6616ba72c8d1a2e3444.tar.gz
mgarepo-d376426856a092a44635c6616ba72c8d1a2e3444.tar.bz2
mgarepo-d376426856a092a44635c6616ba72c8d1a2e3444.tar.xz
mgarepo-d376426856a092a44635c6616ba72c8d1a2e3444.zip
- use svn export instead of checkout, saves 50% disk space
Diffstat (limited to 'RepSys/rpmutil.py')
-rw-r--r--RepSys/rpmutil.py4
1 files changed, 2 insertions, 2 deletions
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)