Read '_rust2rpm.conf' as well
OBS doesn't allow importing files starting with `.` so we need another file name. Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org> Reviewed-by: Neal Gompa <ngompa13@gmail.com>
This commit is contained in:
parent
f83b3dd937
commit
ea5fcb0dfe
1 changed files with 1 additions and 1 deletions
|
@ -318,7 +318,7 @@ def main():
|
||||||
kwargs["license_comments"] = comments
|
kwargs["license_comments"] = comments
|
||||||
|
|
||||||
conf = configparser.ConfigParser(interpolation=configparser.ExtendedInterpolation())
|
conf = configparser.ConfigParser(interpolation=configparser.ExtendedInterpolation())
|
||||||
conf.read(".rust2rpm.conf")
|
conf.read(["_rust2rpm.conf", ".rust2rpm.conf"])
|
||||||
if args.target not in conf:
|
if args.target not in conf:
|
||||||
conf.add_section(args.target)
|
conf.add_section(args.target)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue