[PATCH rhel6-branch] fixup exclude/excludepkgs usage (#607664)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



NOTE: I haven't tested this yet.

yum calls it exclude, anaconda ksrepo calls it excludepkgs. writeKS
is where the problem lies.

Resolves: rhbz#607664
---
 yuminstall.py |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/yuminstall.py b/yuminstall.py
index dfb65de..f59126b 100644
--- a/yuminstall.py
+++ b/yuminstall.py
@@ -755,7 +755,7 @@ class AnacondaYum(YumSorter):
                 if ksrepo.cost:
                     repo.cost = ksrepo.cost
 
-                if ksrepo.exclude:
+                if ksrepo.excludepkgs:
                     repo.exclude = ksrepo.excludepkgs
 
                 if ksrepo.includepkgs:
@@ -1943,8 +1943,9 @@ debuglevel=10
 
             if repo.includepkgs:
                 line += " --includepkgs=\"%s\"" % ",".join(repo.includepkgs)
-            if repo.excludepkgs:
-                line += " --excludepkgs=\"%s\"" % ",".join(repo.excludepkgs)
+
+            if repo.exclude:
+                line += " --excludepkgs=\"%s\"" % ",".join(repo.exclude)
 
             line += "\n"
 
-- 
1.7.0.1

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux