aboutsummaryrefslogtreecommitdiffstats
path: root/MgaRepo
diff options
context:
space:
mode:
Diffstat (limited to 'MgaRepo')
-rw-r--r--MgaRepo/rpmutil.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/MgaRepo/rpmutil.py b/MgaRepo/rpmutil.py
index 0b127d8..8c00da9 100644
--- a/MgaRepo/rpmutil.py
+++ b/MgaRepo/rpmutil.py
@@ -674,6 +674,15 @@ def delete(paths, commit=False):
if commit:
svn.commit(path, log=message)
+def obsolete(pkgdirurl, branch=None, distro=None, backports=None, commit=False, log=None):
+ o_pkgdirurl = pkgdirurl
+ pkgdirurl = layout.package_url(o_pkgdirurl, distro=distro, backports=backports)
+ pkgdest = layout.package_url(o_pkgdirurl, obsolete=True, backports=backports)
+ svn = SVN()
+ svn.mv(pkgdirurl, pkgdest, message=log)
+ if commit:
+ svn.commit(path, log=log)
+
def switch(mirrorurl=None):
svn = SVN()
topdir = getpkgtopdir()