summaryrefslogtreecommitdiffstats
path: root/src/fedpkg.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/fedpkg.py')
-rwxr-xr-xsrc/fedpkg.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/fedpkg.py b/src/fedpkg.py
index a216abb..51ee2c8 100755
--- a/src/fedpkg.py
+++ b/src/fedpkg.py
@@ -548,6 +548,11 @@ def new(args):
sys.exit(1)
def new_sources(args):
+ # Check to see if the files passed exist
+ for file in args.files:
+ if not os.path.exists(file):
+ log.error('File does not exist: %s' % file)
+ sys.exit(1)
try:
mymodule = pyfedpkg.PackageModule(args.path)
mymodule.upload(args.files, replace=args.replace)