Re: How to check current Base Environment?

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

 



On Wed, Dec 17, 2014 at 05:34:40PM +0700, Jack Ngo wrote:
> Hi everyone,
> 
> I found applyYumSelections function in pyanaconda/packaging/yumpayload.py
> def _applyYumSelections(self):
>         """ Apply the selections in ksdata to yum.
> 
>             This follows the same ordering/pattern as kickstart.py.
>         """
>         self._selectYumGroup("core")
> 
>         env = None
> 
>         if self.data.packages.default and self.environments:
>             env = self.environments[0]
>         elif self.data.packages.environment:
>             env = self.data.packages.environment
> 
> Then, I used log.info(env) but it's always "None", so how could I check
> current base environment? What's env variable? Does it define Base
> Environment?
> 
> Please help me about it.
> Thank you so much !!!

environments are comps groups, so they depend on your repo data. By
default it selects the first one, if they exist. Also look at the code
in the environments property and related methods.

-- 
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)

_______________________________________________
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