|
|
|
@ -1,4 +1,4 @@
|
|
|
|
|
From 52b6ff8d55d59ace29950621ed41175ac31fa90c Mon Sep 17 00:00:00 2001
|
|
|
|
|
From 9ef415cbd5e204849793a16fa1b8a9ed40c0be73 Mon Sep 17 00:00:00 2001
|
|
|
|
|
From: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
|
|
|
|
|
Date: Wed, 31 Oct 2018 18:03:21 +0100
|
|
|
|
|
Subject: [PATCH 09/10] add support for feeding user configuration
|
|
|
|
@ -57,7 +57,7 @@ index 8866027..0000000
|
|
|
|
|
-
|
|
|
|
|
-Convert Rust crates to RPM.
|
|
|
|
|
diff --git a/rust2rpm/__main__.py b/rust2rpm/__main__.py
|
|
|
|
|
index d19cb47..18fac5c 100644
|
|
|
|
|
index d19cb47..c691274 100644
|
|
|
|
|
--- a/rust2rpm/__main__.py
|
|
|
|
|
+++ b/rust2rpm/__main__.py
|
|
|
|
|
@@ -199,6 +199,11 @@ def make_diff_metadata(crate, version, patch=False, store=False):
|
|
|
|
@ -84,7 +84,7 @@ index d19cb47..18fac5c 100644
|
|
|
|
|
kwargs["license"] = license
|
|
|
|
|
kwargs["license_comments"] = comments
|
|
|
|
|
|
|
|
|
|
+ conf = configparser.ConfigParser()
|
|
|
|
|
+ conf = configparser.ConfigParser(interpolation=configparser.ExtendedInterpolation())
|
|
|
|
|
+ conf.read(".rust2rpm.conf")
|
|
|
|
|
+ if args.target not in conf:
|
|
|
|
|
+ conf.add_section(args.target)
|
|
|
|
|