[PATCH v2 09/10] parsemail: Convert to a management command

Daniel Axtens dja at axtens.net
Sun Aug 28 14:59:58 AEST 2016


>>  PYTHONPATH="$PATCHWORK_BASE":"$PATCHWORK_BASE/lib/python:$PYTHONPATH" \
>>          DJANGO_SETTINGS_MODULE=patchwork.settings.production \
>> -        "$PATCHWORK_BASE/patchwork/bin/parsemail.py"
>> +        "$PATCHWORK_BASE/patchwork/manage.py parsemail"
>>
>> +# NOTE(stephenfin): We must return 0 here. For more information, refer
>> +# to https://patchwork.ozlabs.org/patch/602248/
>>  exit 0
>
> This makes sense, but I'm still confused why you don't pass $* to the 
> command since it can take "--list-id" as an option?

Yep - I had added $@ to my invocation, which I think does something
similar.

Regards,
Daniel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 859 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/patchwork/attachments/20160828/516fddf4/attachment.sig>


More information about the Patchwork mailing list