[Blends-commit] [Git][blends-team/blends][experimental] blends-gen-control: read defaults from GENCONTROL_OPTS env var

Ole Streicher gitlab at salsa.debian.org
Tue Apr 10 15:00:58 UTC 2018


Ole Streicher pushed to branch experimental at Debian Blends Team / blends


Commits:
dc6f7bc9 by Ole Streicher at 2018-04-10T17:00:51+02:00
blends-gen-control: read defaults from GENCONTROL_OPTS env var

- - - - -


1 changed file:

- devtools/blend-gen-control


Changes:

=====================================
devtools/blend-gen-control
=====================================
--- a/devtools/blend-gen-control
+++ b/devtools/blend-gen-control
@@ -69,6 +69,10 @@ parser.add_argument("--udd-database", dest="udd_database",
                     default="udd",
                     help="UDD database name (default: udd)")
 
+if 'GENCONTROL_OPTS' in os.environ:
+    opts = parser.parse_args(os.environ['GENCONTROL_OPTS'].split())
+    parser.set_defaults(**opts.__dict__)
+
 args = parser.parse_args()
 
 if args.release == "current":



View it on GitLab: https://salsa.debian.org/blends-team/blends/commit/dc6f7bc968c89f3af28a9d99911ba7ddc96bbd06

---
View it on GitLab: https://salsa.debian.org/blends-team/blends/commit/dc6f7bc968c89f3af28a9d99911ba7ddc96bbd06
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/blends-commit/attachments/20180410/3dd89a63/attachment-0001.html>


More information about the Blends-commit mailing list