[PATCH 3/4] Implement %packages --instLangs (#156477)
Vratislav Podzimek
vpodzime at redhat.com
Wed Feb 26 08:25:40 UTC 2014
On Tue, 2014-02-25 at 14:40 -0500, David Shea wrote:
> ---
> pyanaconda/packaging/__init__.py | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/pyanaconda/packaging/__init__.py b/pyanaconda/packaging/__init__.py
> index f404d3c..9d254bd 100644
> --- a/pyanaconda/packaging/__init__.py
> +++ b/pyanaconda/packaging/__init__.py
> @@ -664,6 +664,13 @@ class PackagePayload(Payload):
> if self.data.packages.excludeDocs:
> self.rpmMacros.append(('_excludedocs', '1'))
>
> + if self.data.packages.instLangs is not None:
> + if not self.data.packages.instLangs:
> + instLangs = '%{nil}'
> + else:
> + instLangs = self.data.packages.instLangs
These four lines could be reduced to a single one:
instLangs = self.data.packages.instLangs or '%{nil}'
but I don't know if you like these shortcuts.
--
Vratislav Podzimek
Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic
More information about the anaconda-patches
mailing list