projects
/
tools
/
gbs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b282d5
)
More error handling while import sources
author
Zhang Qiang
<qiang.z.zhang@intel.com>
Mon, 14 May 2012 07:12:29 +0000
(15:12 +0800)
committer
Ed Bartosh
<eduard.bartosh@intel.com>
Wed, 16 May 2012 15:42:24 +0000
(18:42 +0300)
Change-Id: Ifd9788b7d4e73bda371287ed44a64fb568f89e49
gitbuildsys/cmd_import.py
patch
|
blob
|
history
diff --git
a/gitbuildsys/cmd_import.py
b/gitbuildsys/cmd_import.py
index
685ebbd
..
b74677b
100644
(file)
--- a/
gitbuildsys/cmd_import.py
+++ b/
gitbuildsys/cmd_import.py
@@
-36,6
+36,8
@@
def do(opts, args):
msger.error('missing argument, please reference gbs import --help.')
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)
params = ["argv[0] placeholder", "--packaging-dir=packaging",
"--upstream-branch=%s" % opts.upstream_branch, args[0]]