[aur-dev] [PATCH 2/4] git-auth: Set AUR_PRIVILEGED env var for TUs & devs
Johannes Löthberg
johannes at kyriasis.com
Tue Jun 23 08:22:02 UTC 2015
On 23/06, Lukas Fleischer wrote:
>On Tue, 23 Jun 2015 at 00:00:19, Johannes Löthberg wrote:
>> +if account_type > 1:
>> + privileged = True
>> +else:
>> + privileged = False
>> +
>> +
>> env_vars = {
>> 'AUR_USER': user,
>> + 'AUR_PRIVILEGED': privileged,
>
>Maybe drop the if-else-block above and directly use (account_type > 1)
>here? I am not sure about which version is more readable...
>
I think I'd find the if-else more readable, but I can switch if you
want.
--
Sincerely,
Johannes Löthberg
PGP Key ID: 0x50FB9B273A9D0BB5
https://theos.kyriasis.com/~kyrias/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 1495 bytes
Desc: not available
URL: <https://lists.archlinux.org/pipermail/aur-dev/attachments/20150623/a3fe2e5b/attachment.asc>
More information about the aur-dev
mailing list