Skip to content

Commit

Permalink
Ccs 3469 uploader bugfixes2 (#263)
Browse files Browse the repository at this point in the history
* bugfix for git2import feature
  • Loading branch information
xdavidson committed Mar 26, 2020
1 parent d8c411b commit afaa712
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions uploader/pantheon.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,9 +376,13 @@ def processRegexMatches(files, globs, filetype):
if args.attrFile:
if not os.path.isfile(args.directory + '/' + args.attrFile):
sys.exit('attributes: ' + args.directory + '/' + args.attrFile + ' does not exist.')

elif attributeFile and not os.path.isfile(attributeFile.strip()):
sys.exit('attributes: ' + attributeFile + ' does not exist.')
elif attributeFile:
if args.directory:
if not os.path.isfile(args.directory + '/' + attributeFile.strip()):
sys.exit('attributes2: ' + args.directory + '/' + attributeFile + ' does not exist.')
else:
if not os.path.isfile(attributeFile.strip()):
sys.exit('attributes3: ' + attributeFile + ' does not exist.')

_info('Using ' + mode + ': ' + repository)
_info('Using attributes: ' + attributeFile)
Expand Down

0 comments on commit afaa712

Please sign in to comment.