From dee6481652b0fb91fdbb49cafd5bb69d06b5216e Mon Sep 17 00:00:00 2001 From: Alec Warner Date: Sun, 24 Feb 2008 07:52:33 +0000 Subject: Various repoman fixes, plus a weird lockfile tracekback in news. svn path=/main/trunk/; revision=9377 --- bin/repoman | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bin') diff --git a/bin/repoman b/bin/repoman index 0ca127dcb..febaa0002 100755 --- a/bin/repoman +++ b/bin/repoman @@ -9,6 +9,7 @@ import commands import codecs +import commands import errno import formatter import logging @@ -21,7 +22,6 @@ import sys import tempfile import time -from commands import getstatusoutput from itertools import izip from stat import S_ISDIR, ST_CTIME @@ -984,7 +984,7 @@ for x in scanlist: if xmllint_capable: # xmlint can produce garbage output even on success, so only dump # the ouput when it fails. - st, out = getstatusoutput( + st, out = commands.getstatusoutput( "xmllint --nonet --noout --dtdvalid '%s' '%s'" % \ (metadata_dtd, os.path.join(checkdir, "metadata.xml"))) if st != os.EX_OK: @@ -1594,7 +1594,7 @@ else: for myfile in myupdates: if myfile in bin_blobs: continue - myout=getstatusoutput("egrep -q "+headerstring+" "+myfile) + myout = commands.getstatusoutput("egrep -q "+headerstring+" "+myfile) if myout[0]==0: myheaders.append(myfile) -- cgit v1.2.3-1-g7c22