Fix work without mkimage_profile_git set in config
This commit is contained in:
parent
f3cc5806ce
commit
b7d8e87629
@ -59,7 +59,7 @@ class CB:
|
||||
cfg = yaml.safe_load(f)
|
||||
|
||||
self.mkimage_profiles_git = os.path.expanduser(
|
||||
cfg.get('mkimage_profiles_git')
|
||||
cfg.get('mkimage_profiles_git', '')
|
||||
)
|
||||
|
||||
self.log_level = getattr(logging, cfg.get('log_level', 'INFO').upper())
|
||||
@ -194,7 +194,7 @@ rpm {repo}/{branch} noarch classic
|
||||
return f'\n\t@$(call add,{variable},{value})'
|
||||
|
||||
url = self.mkimage_profiles_git
|
||||
if url is None:
|
||||
if url == '':
|
||||
url = (
|
||||
'git://'
|
||||
+ 'git.altlinux.org/'
|
||||
|
Loading…
Reference in New Issue
Block a user