Re: [PATCH] Allow displaying groups that only contain conditional packages (#475239).

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

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 05/04/2010 11:34 AM, Chris Lumens wrote:
> This also allows selecting these groups in the UI, though if the group has no
> optional packages you will not be able to pull up the optional package
> selection dialog.  In effect, a conditional-only group will act like a
> mandatory-only group as far as the UI is concerned.
> ---
>  yuminstall.py |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
> 
> diff --git a/yuminstall.py b/yuminstall.py
> index 604da7b..3e0b1e2 100644
> --- a/yuminstall.py
> +++ b/yuminstall.py
> @@ -1094,7 +1094,8 @@ class AnacondaYum(YumSorter):
>                  return True
>          if len(grp.mandatory_packages) > 0:
>              return False
> -        for pkg in grp.default_packages.keys() + grp.optional_packages.keys():
> +        for pkg in grp.default_packages.keys() + grp.optional_packages.keys() + \
> +                   grp.conditional_packages.keys():
>              if self._pkgExists(pkg):
>                  return True
>          return False

Where does grp.conditional_packages come from? I cannot find any other
reference to it in the current codebase.

- -- 
Brian C. Lane <bcl@xxxxxxxxxx>
Red Hat / Port Orchard, WA
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iQEVAwUBS+Dy4hF+jBaO/jp/AQIR8Af/XFA5x6vfGcsq9D1xLVT3eutOb4Hkvj75
rDp7mrlqnrOEzJZPujTDSzpjRHq97QyYsJLWGOAZ11KlmMrckPu+9JARE+usaOZ+
mXcCwItesbw1mRwrm5gJfseXiwb/Y4plSp3YW7VLlLi2vW8bAjcWt5qdRrQ9OaSw
GmCzMvDeTf9VvtJ8pTNoNgKouA9Z2hUX3Khxrs6LAVa7Qen9c07HFTr0Ky83JZL7
9COdC6vUS3v1hsydefY5gCOQOWfNF8rTaF0YSa5IcSI0e9kGlODlKMOJV376oElO
TZqJIexTx2THdM4sxfZlGaAu6mLT+OkPJoBe9hmnK7+O/Y+L13GAlA==
=VrTU
-----END PGP SIGNATURE-----

_______________________________________________
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