diff options
author | Till Maas <opensource@till.name> | 2010-03-06 11:38:41 +0100 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2010-03-08 10:15:01 -0500 |
commit | f68d58c4efe705a9c38442194fb526cade309928 (patch) | |
tree | 7356fea23544695b5c92b88f06dccb63a26d141f /fedpkg-vcs | |
parent | 1b9e068088d298a5033f2dfbed79849b5a4f6080 (diff) | |
download | fedpkg-make-pull-f68d58c4efe705a9c38442194fb526cade309928.tar.gz fedpkg-make-pull-f68d58c4efe705a9c38442194fb526cade309928.tar.xz fedpkg-make-pull-f68d58c4efe705a9c38442194fb526cade309928.zip |
fedpkg-vcs: fix spec status message
Use variable 'spec' instead of unknown variable 'targetspec'.
Add Spec.__str__ to show filename of spec.
Diffstat (limited to 'fedpkg-vcs')
-rwxr-xr-x | fedpkg-vcs | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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" |