Skip to content

Commit 78c4271

Browse files
saisoma123vgvassilev
authored andcommitted
Renamed packaging variables
1 parent d2ae401 commit 78c4271

File tree

1 file changed

+13
-14
lines changed
  • interpreter/cling/tools/packaging

1 file changed

+13
-14
lines changed

interpreter/cling/tools/packaging/cpt.py

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2043,7 +2043,6 @@ 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-
20472046
if args['with_llvm_tar']:
20482047
tar_required = True
20492048

@@ -2204,7 +2203,7 @@ def custom_input(prompt, always_yes=False):
22042203

22052204
if bool(args['current_dev']) or bool(args['current_dev_build']):
22062205
travis_fold_start("git-clone")
2207-
current_cond = args['current_dev'] if args['current_dev'] else args['current_dev_build']
2206+
current_packaging_mode = args['current_dev'] if args['current_dev'] else args['current_dev_build']
22082207
llvm_revision = urlopen(
22092208
"https://raw.githubusercontent.com/root-project/" +
22102209
"cling/master/LastKnownGoodLLVMSVNRevision.txt").readline().strip().decode(
@@ -2269,7 +2268,7 @@ def custom_input(prompt, always_yes=False):
22692268
tarball()
22702269
cleanup()
22712270

2272-
elif current_cond == 'deb' or (current_cond == 'pkg' and DIST == 'Ubuntu'):
2271+
elif current_packaging_mode == 'deb' or (current_packaging_mode == 'pkg' and DIST == 'Ubuntu'):
22732272
compile(os.path.join(workdir, 'cling-' + VERSION))
22742273
install_prefix()
22752274
if not args['no_test']:
@@ -2281,7 +2280,7 @@ def custom_input(prompt, always_yes=False):
22812280
debianize()
22822281
cleanup()
22832282

2284-
elif current_cond == 'rpm' or (current_cond == 'pkg' and platform.dist()[0] == 'redhat'):
2283+
elif current_packaging_mode == 'rpm' or (current_packaging_mode == 'pkg' and platform.dist()[0] == 'redhat'):
22852284
compile(os.path.join(workdir, 'cling-' +
22862285
VERSION.replace('-' + revision[:7], '')))
22872286
install_prefix()
@@ -2292,7 +2291,7 @@ def custom_input(prompt, always_yes=False):
22922291
rpm_build()
22932292
cleanup()
22942293

2295-
elif current_cond == 'nsis' or (current_cond == 'pkg' and OS == 'Windows'):
2294+
elif current_packaging_mode == 'nsis' or (current_packaging_mode == 'pkg' and OS == 'Windows'):
22962295
get_win_dep()
22972296
compile(os.path.join(workdir, 'cling-' + RELEASE + '-'
22982297
+ platform.machine().lower() + '-' + VERSION))
@@ -2304,7 +2303,7 @@ def custom_input(prompt, always_yes=False):
23042303
build_nsis()
23052304
cleanup()
23062305

2307-
elif current_cond == 'dmg' or (current_cond == 'pkg' and OS == 'Darwin'):
2306+
elif current_packaging_mode == 'dmg' or (current_packaging_mode == 'pkg' and OS == 'Darwin'):
23082307
compile(os.path.join(workdir, 'cling-' + DIST + '-' + REV + '-'
23092308
+ platform.machine().lower() + '-' + VERSION))
23102309
CPT_SRC_DIR = install_prefix()
@@ -2316,7 +2315,7 @@ def custom_input(prompt, always_yes=False):
23162315
make_dmg(CPT_SRC_DIR)
23172316
cleanup()
23182317

2319-
elif current_cond == 'pkg':
2318+
elif current_packaging_mode == 'pkg':
23202319
compile(os.path.join(workdir, 'cling-' + DIST + '-' + REV + '-'
23212320
+ platform.machine().lower() + '-' + VERSION))
23222321
install_prefix()
@@ -2329,7 +2328,7 @@ def custom_input(prompt, always_yes=False):
23292328
cleanup()
23302329

23312330
if bool(args['last_stable']) ^ bool(args['last_stable_build']):
2332-
stable_cond = args['last_stable'] if args['last_stable'] else args['last_stable_build']
2331+
stable_packaging_mode = args['last_stable'] if args['last_stable'] else args['last_stable_build']
23332332
tag = json.loads(urlopen("https://api.github.com/repos/vgvassilev/cling/tags")
23342333
.read().decode('utf-8'))[0]['name'].encode('ascii', 'ignore').decode("utf-8")
23352334

@@ -2358,7 +2357,7 @@ def custom_input(prompt, always_yes=False):
23582357
print("Last stable Cling release detected: ", tag)
23592358
fetch_cling(tag)
23602359

2361-
if stable_cond == 'tar':
2360+
if stable_packaging_mode == 'tar':
23622361
set_version()
23632362
if OS == 'Windows':
23642363
get_win_dep()
@@ -2383,7 +2382,7 @@ def custom_input(prompt, always_yes=False):
23832382
tarball()
23842383
cleanup()
23852384

2386-
elif stable_cond == 'deb' or (stable_cond == 'pkg' and DIST == 'Ubuntu'):
2385+
elif stable_packaging_mode == 'deb' or (stable_packaging_mode == 'pkg' and DIST == 'Ubuntu'):
23872386
set_version()
23882387
compile(os.path.join(workdir, 'cling-' + VERSION))
23892388
install_prefix()
@@ -2396,7 +2395,7 @@ def custom_input(prompt, always_yes=False):
23962395
debianize()
23972396
cleanup()
23982397

2399-
elif stable_cond == 'rpm' or (stable_cond == 'pkg' and platform.dist()[0] == 'redhat'):
2398+
elif stable_packaging_mode == 'rpm' or (stable_packaging_mode == 'pkg' and platform.dist()[0] == 'redhat'):
24002399
set_version()
24012400
compile(os.path.join(workdir, 'cling-' + VERSION))
24022401
install_prefix()
@@ -2407,7 +2406,7 @@ def custom_input(prompt, always_yes=False):
24072406
rpm_build()
24082407
cleanup()
24092408

2410-
elif stable_cond == 'nsis' or (stable_cond == 'pkg' and OS == 'Windows'):
2409+
elif stable_packaging_mode == 'nsis' or (stable_packaging_mode == 'pkg' and OS == 'Windows'):
24112410
set_version()
24122411
get_win_dep()
24132412
compile(os.path.join(workdir, 'cling-' + DIST + '-' + REV + '-'
@@ -2420,7 +2419,7 @@ def custom_input(prompt, always_yes=False):
24202419
build_nsis()
24212420
cleanup()
24222421

2423-
elif stable_cond == 'dmg' or (stable_cond == 'pkg' and OS == 'Darwin'):
2422+
elif stable_packaging_mode == 'dmg' or (stable_packaging_mode == 'pkg' and OS == 'Darwin'):
24242423
set_version()
24252424
compile(os.path.join(workdir, 'cling-' + DIST + '-' + REV + '-'
24262425
+ platform.machine().lower() + '-' + VERSION))
@@ -2433,7 +2432,7 @@ def custom_input(prompt, always_yes=False):
24332432
make_dmg(CPT_SRC_DIR)
24342433
cleanup()
24352434

2436-
elif stable_cond == 'pkg':
2435+
elif stable_packaging_mode == 'pkg':
24372436
set_version()
24382437
compile(os.path.join(workdir, 'cling-' + DIST + '-' + REV + '-'
24392438
+ platform.machine().lower() + '-' + VERSION))

0 commit comments

Comments
 (0)