parent
74e6de4b76
commit
e6aeb2e218
@ -0,0 +1,28 @@
|
||||
From 4412b55ed2eb6db1180933701b66d7ae4a7fcbd3 Mon Sep 17 00:00:00 2001
|
||||
From: Pablo Greco <pablo@fliagreco.com.ar>
|
||||
Date: Thu, 22 Nov 2018 16:12:40 +0000
|
||||
Subject: [PATCH] Fix excludeWeakdeps for older pykickstart versions
|
||||
|
||||
---
|
||||
imgcreate/kickstart.py | 5 ++++-
|
||||
1 file changed, 4 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/imgcreate/kickstart.py b/imgcreate/kickstart.py
|
||||
index 1b8ac88..aa587b6 100644
|
||||
--- a/imgcreate/kickstart.py
|
||||
+++ b/imgcreate/kickstart.py
|
||||
@@ -614,7 +614,10 @@ def exclude_docs(ks):
|
||||
return ks.handler.packages.excludeDocs
|
||||
|
||||
def exclude_weakdeps(ks):
|
||||
- return ks.handler.packages.excludeWeakdeps
|
||||
+ if hasattr(ks.handler.packages, "excludeWeakdeps"):
|
||||
+ if ks.handler.packages.excludeWeakdeps:
|
||||
+ return ks.handler.packages.excludeWeakdeps
|
||||
+ return None
|
||||
|
||||
def nocore(ks):
|
||||
return ks.handler.packages.nocore
|
||||
--
|
||||
2.17.2
|
||||
|
Loading…
Reference in new issue