aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2011-08-17 19:25:49 +0000
committerNicolas Vigier <boklm@mageia.org>2011-08-17 19:25:49 +0000
commitbfa821f2fa82b8ad217b3f5637f70282a7ebf8ed (patch)
treec8ea332c904cfabfaf1fa82acbf054aadbfb31a5
parentffd9d21e4df15ca2890402add445d1725f7519ba (diff)
downloadmgarepo-bfa821f2fa82b8ad217b3f5637f70282a7ebf8ed.tar
mgarepo-bfa821f2fa82b8ad217b3f5637f70282a7ebf8ed.tar.gz
mgarepo-bfa821f2fa82b8ad217b3f5637f70282a7ebf8ed.tar.bz2
mgarepo-bfa821f2fa82b8ad217b3f5637f70282a7ebf8ed.tar.xz
mgarepo-bfa821f2fa82b8ad217b3f5637f70282a7ebf8ed.zip
remove binrepo markrelease
-rw-r--r--MgaRepo/binrepo.py13
-rw-r--r--MgaRepo/rpmutil.py1
2 files changed, 0 insertions, 14 deletions
diff --git a/MgaRepo/binrepo.py b/MgaRepo/binrepo.py
index 0657556..d621f21 100644
--- a/MgaRepo/binrepo.py
+++ b/MgaRepo/binrepo.py
@@ -312,16 +312,3 @@ def mapped_revision(target, revision, wc=False):
binrev = "{%s}" % date
return binrev
-def markrelease(sourceurl, releasesurl, version, release, revision, binrev):
- svn = SVN()
- if not binrev:
- binrev = mapped_revision(sourceurl, revision)
- binsource = translate_url(sourceurl)
- binreleases = translate_url(releasesurl)
- versiondir = mirror._joinurl(binreleases, version)
- dest = mirror._joinurl(versiondir, release)
- svn.mkdir(binreleases, noerror=1, log="created directory for releases")
- svn.mkdir(versiondir, noerror=1, log="created directory for version %s" % version)
- svn.copy(binsource, dest, rev=binrev,
- log="%%markrelease ver=%s rel=%s rev=%s binrev=%s" % (version, release,
- revision, binrev))
diff --git a/MgaRepo/rpmutil.py b/MgaRepo/rpmutil.py
index 5d26237..2442efb 100644
--- a/MgaRepo/rpmutil.py
+++ b/MgaRepo/rpmutil.py
@@ -382,7 +382,6 @@ def mark_release(pkgdirurl, version, release, revision):
versionurl = "/".join([releasesurl, version])
releaseurl = "/".join([versionurl, release])
currenturl = layout.checkout_url(pkgdirurl)
- binrepo.markrelease(currenturl, releasesurl, version, release, revision)
if svn.ls(releaseurl, noerror=1):
raise Error, "release already exists"
svn.mkdir(releasesurl, noerror=1,