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:
Igor Gnatenko 2019-04-23 15:49:25 +02:00
parent f83b3dd937
commit ea5fcb0dfe
No known key found for this signature in database
GPG key ID: 695714BD1BBC5F4C

View file

@ -318,7 +318,7 @@ def main():
kwargs["license_comments"] = comments
conf = configparser.ConfigParser(interpolation=configparser.ExtendedInterpolation())
conf.read(".rust2rpm.conf")
conf.read(["_rust2rpm.conf", ".rust2rpm.conf"])
if args.target not in conf:
conf.add_section(args.target)