diff options
Diffstat (limited to 'RepSys/rpmutil.py')
-rw-r--r-- | RepSys/rpmutil.py | 10 |
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" |