From f68d58c4efe705a9c38442194fb526cade309928 Mon Sep 17 00:00:00 2001 From: Till Maas Date: Sat, 6 Mar 2010 11:38:41 +0100 Subject: fedpkg-vcs: fix spec status message Use variable 'spec' instead of unknown variable 'targetspec'. Add Spec.__str__ to show filename of spec. --- fedpkg-vcs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/fedpkg-vcs b/fedpkg-vcs index 05ab3cb..508cf96 100755 --- a/fedpkg-vcs +++ b/fedpkg-vcs @@ -312,7 +312,11 @@ class Spec(object): if line.startswith(key): result.append(line[len(key):].strip()) return result - + + def __str__(self): + return self._filename + + def command_checkout(spec, vcs, vcsdir, args=[], opts={}): if os.path.exists(vcsdir): print "VCS directory %r already exists" % (vcsdir, ) @@ -374,7 +378,7 @@ def command_pull_update(spec, vcs, vcsdir, args=[], opts={}): f.write('\n') f.close() - print "Updated %s and sources file" % (targetspec, ) + print "Updated %s and sources file" % (spec, ) print "If you want to upload to Fedora, you'll need to run:" print " make upload FILE=%s" % (snapshot_archivename, ) print " cvs commit && make tag build" -- cgit