[PATCH] Don't check for the config file if the user is asking for help

Dennis Gilmore dennis at ausil.us
Thu Feb 20 09:53:11 UTC 2014


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

On Thu, 20 Feb 2014 17:17:46 +0800
Mathieu Bridon <bochecha at fedoraproject.org> wrote:

> We already do that for the other 2 ways of asking for help ('-h' and
> '--help'), so we should do that for 'help' as well.
> ---
>  src/fedpkg/__main__.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/fedpkg/__main__.py b/src/fedpkg/__main__.py
> index bd95653..c64f61e 100644
> --- a/src/fedpkg/__main__.py
> +++ b/src/fedpkg/__main__.py
> @@ -29,7 +29,7 @@ def main():
>      (args, other) = parser.parse_known_args()
>  
>      # Make sure we have a sane config file
> -    if not os.path.exists(args.config) and not other[-1] in
> ['--help', '-h']:
> +    if not os.path.exists(args.config) and not other[-1] in
> ['--help', '-h', 'help']: sys.stderr.write('Invalid config file %s\n'
> % args.config) sys.exit(1)
>  

applied thanks

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)

iQIcBAEBAgAGBQJTBdCNAAoJEH7ltONmPFDRhk4P/iWwKyUllbKcWSW9n+r9AuNK
e5CwO7Gl95OSHAlFXmmrtg/JV+h98QEA0OJ/FZHjKoOXGh8EMdZAJ8hFBMQ/PxwS
n88TEAfqlt19yhrRfy3UQXhkbR1tj4U6xqNtQ24jsJ9SlHAU8wa/gQg+x5HtpE88
eLN3mkKVcwsmRkRA0gRjB8rq/dFn6FdieJmzPrxecSex5t6WsEI+Q16TVtLjfyUW
EAr7Qz3zS4yEutF4fyoJIrh/VKc8HlKS9TRwZncp4Tykoi8uAefQ6TmwtRuzwF8O
kQIpJZGWSCAKmwI1af0OHgjAqpJJJ/uws9suc1E0pijJZOntt6Sgk6V+VuMmzSg/
PDlnoViNU4Mzb0hHQK3OmBVh+p5qpTftXg8lQhKP39rl7hLF0wentGfCuDUAzo0E
tyg46kydgUAuJGiqAbLDTvDujaxxJ3p+IaenWkZhxAw76+Lo0IkwtysPGhVdMzKY
9jm7y/n49QkWxnbo8FOYatDDfywjV3ccQ8RCQs23lYsmegxzN55jwvMEDjSFY5uu
FEYPQGUwi5wuFPf35V+exSeFx2Gthn/BTppp5PVeMOnBKy8yeRXe9CXdLBwCJGtn
z/XmUmCsjENpE2HN019dOHlUNBxpX9SJwj8wPZGfH3HySKELd3N21AfsG3Sdz114
6iAipVoZzkAZdbwn9cML
=8s0d
-----END PGP SIGNATURE-----


More information about the rel-eng mailing list