From b09cf55fc133349845f5bfed78335d93594f73a0 Mon Sep 17 00:00:00 2001 From: Papoteur Date: Sun, 21 Feb 2016 12:04:14 +0100 Subject: Restablish a print after a svn command --- MgaRepo/rpmutil.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'MgaRepo/rpmutil.py') 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() -- cgit v1.2.1