aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBogdano Arendartchuk <bogdano@mandriva.org>2009-02-17 14:17:09 +0000
committerBogdano Arendartchuk <bogdano@mandriva.org>2009-02-17 14:17:09 +0000
commit2d38cbc5f2d2703025e03b3d750631a8a27010f1 (patch)
treecce6b508ac13e32b8e21b58e658c8eb98f2c1feb
parent96a9e6925bdf75ca213461d8c574fb69294721d7 (diff)
downloadmgarepo-2d38cbc5f2d2703025e03b3d750631a8a27010f1.tar
mgarepo-2d38cbc5f2d2703025e03b3d750631a8a27010f1.tar.gz
mgarepo-2d38cbc5f2d2703025e03b3d750631a8a27010f1.tar.bz2
mgarepo-2d38cbc5f2d2703025e03b3d750631a8a27010f1.tar.xz
mgarepo-2d38cbc5f2d2703025e03b3d750631a8a27010f1.zip
Oops, it was listing the wrong URL
-rw-r--r--RepSys/rpmutil.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/RepSys/rpmutil.py b/RepSys/rpmutil.py
index d0985ef..c11ad4e 100644
--- a/RepSys/rpmutil.py
+++ b/RepSys/rpmutil.py
@@ -188,19 +188,19 @@ def put_srpm(srpmfile, markrelease=False, striplog=True, branch=None,
version = srpm.version
versionurl = "/".join([pkgurl, "releases", version])
releaseurl = "/".join([versionurl, srpm.release])
- currenturl = os.path.join(tmpdir, "current")
+ currenturl = "/".join([pkgurl, "current"])
+ currentdir = os.path.join(tmpdir, "current")
#FIXME when pre-commit hook fails, there's no clear way to know
# what happened
ret = svn.mkdir(pkgurl, noerror=1, log="Created package directory")
if ret or not svn.ls(currenturl, noerror=1):
svn.checkout(pkgurl, tmpdir)
svn.mkdir(os.path.join(tmpdir, "releases"))
- svn.mkdir(currenturl)
- svn.mkdir(os.path.join(currenturl, "SPECS"))
- svn.mkdir(os.path.join(currenturl, "SOURCES"))
+ svn.mkdir(currentdir)
+ svn.mkdir(os.path.join(currentdir, "SPECS"))
+ svn.mkdir(os.path.join(currentdir, "SOURCES"))
#svn.commit(tmpdir,log="Created package structure.")
version_exists = 1
- currentdir = os.path.join(tmpdir, "current")
else:
if svn.ls(releaseurl, noerror=1):
raise Error, "release already exists"