From 2d38cbc5f2d2703025e03b3d750631a8a27010f1 Mon Sep 17 00:00:00 2001 From: Bogdano Arendartchuk Date: Tue, 17 Feb 2009 14:17:09 +0000 Subject: Oops, it was listing the wrong URL --- RepSys/rpmutil.py | 10 +++++----- 1 file 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" -- cgit v1.2.1