Skip to content

Commit 6018b5f

Browse files
saisoma123vgvassilev
authored andcommitted
Added checks if both normal and build tags
1 parent 78c4271 commit 6018b5f

File tree

1 file changed

+7
-1
lines changed
  • interpreter/cling/tools/packaging

1 file changed

+7
-1
lines changed

interpreter/cling/tools/packaging/cpt.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2043,6 +2043,12 @@ def custom_input(prompt, always_yes=False):
20432043
if args['dmg_tag'] and args['dmg_tag_build']:
20442044
raise Exception('You cannot specify both the dmg_tag and dmg_tag_build flags')
20452045

2046+
if args['current_dev'] and args['current_dev_build']:
2047+
raise Exception('You cannot specify both the current_dev and current_dev_build flags')
2048+
2049+
if args['last_stable'] and args['last_stable_build']:
2050+
raise Exception('You cannot specify both the last_stable and last_stable_build flags')
2051+
20462052
if args['with_llvm_tar']:
20472053
tar_required = True
20482054

@@ -2327,7 +2333,7 @@ def custom_input(prompt, always_yes=False):
23272333
tarball()
23282334
cleanup()
23292335

2330-
if bool(args['last_stable']) ^ bool(args['last_stable_build']):
2336+
if bool(args['last_stable']) or bool(args['last_stable_build']):
23312337
stable_packaging_mode = args['last_stable'] if args['last_stable'] else args['last_stable_build']
23322338
tag = json.loads(urlopen("https://api.github.com/repos/vgvassilev/cling/tags")
23332339
.read().decode('utf-8'))[0]['name'].encode('ascii', 'ignore').decode("utf-8")

0 commit comments

Comments
 (0)