diff options
author | Papoteur <papoteur@mageialinux-online.org> | 2016-02-21 12:04:14 +0100 |
---|---|---|
committer | Papoteur <papoteur@mageialinux-online.org> | 2016-02-21 12:04:14 +0100 |
commit | b09cf55fc133349845f5bfed78335d93594f73a0 (patch) | |
tree | f53a84e7d122a04ef4f5556a6059d042ceda87a3 /MgaRepo/rpmutil.py | |
parent | 4d4a76f16c51a2579f7445571edebfdf3038d0dd (diff) | |
download | mgarepo-b09cf55fc133349845f5bfed78335d93594f73a0.tar mgarepo-b09cf55fc133349845f5bfed78335d93594f73a0.tar.gz mgarepo-b09cf55fc133349845f5bfed78335d93594f73a0.tar.bz2 mgarepo-b09cf55fc133349845f5bfed78335d93594f73a0.tar.xz mgarepo-b09cf55fc133349845f5bfed78335d93594f73a0.zip |
Restablish a print after a svn command
Diffstat (limited to 'MgaRepo/rpmutil.py')
-rw-r--r-- | MgaRepo/rpmutil.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/MgaRepo/rpmutil.py b/MgaRepo/rpmutil.py index 8c00da9..01de502 100644 --- a/MgaRepo/rpmutil.py +++ b/MgaRepo/rpmutil.py @@ -5,6 +5,8 @@ from MgaRepo.svn import SVN from MgaRepo.simplerpm import SRPM from MgaRepo.util import execcmd from MgaRepo.command import default_parent +from MgaRepo.util import get_output_exec + import rpm import urllib.parse import tempfile @@ -682,7 +684,13 @@ def obsolete(pkgdirurl, branch=None, distro=None, backports=None, commit=False, svn.mv(pkgdirurl, pkgdest, message=log) if commit: svn.commit(path, log=log) - + #command = "rpm -q --specfile %s --qf 'Obsoletes: %{name} <= %{evr}\n'" % specpath + #output = get_output_exec(command) + #print(output) + #command = "rpm -q --specfile %s --qf 'Provides: %{name}\n'" % specpath + #output = get_output_exec(command) + #print(output) + def switch(mirrorurl=None): svn = SVN() topdir = getpkgtopdir() |