fix gbs import use undefined variable issue
authorGuan Junchun <junchunx.guan@intel.com>
Tue, 22 May 2012 02:39:51 +0000 (10:39 +0800)
committerGuan Junchun <junchunx.guan@intel.com>
Tue, 22 May 2012 02:56:48 +0000 (10:56 +0800)
gitbuildsys/cmd_import.py

index b74677b..5623cac 100644 (file)
@@ -37,7 +37,7 @@ def do(opts, args):
     if len(args) > 1:
         msger.error('too many arguments! Please reference gbs import --help.')
     if not os.path.exists(args[0]):
-        msger.error('%s not exist' % specfile)
+        msger.error('%s not exist' % args[0])
 
     params = ["argv[0] placeholder", "--packaging-dir=packaging",
               "--upstream-branch=%s" % opts.upstream_branch, args[0]]