[PATCH] run os.path.expanduser on the kojiconfig attribute in case the path is in the user's home directory

Pavol Babincak pbabinca at redhat.com
Tue Nov 4 12:03:45 UTC 2014


Applied and pushed upstream. Thanks!

On 10/16/2014 02:00 AM, Brian Stinson wrote:
> ---
>  src/pyrpkg/__init__.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/pyrpkg/__init__.py b/src/pyrpkg/__init__.py
> index 57d187e..f951327 100644
> --- a/src/pyrpkg/__init__.py
> +++ b/src/pyrpkg/__init__.py
> @@ -90,7 +90,7 @@ class Commands(object):
>          # The regex of branches we care about
>          self.branchre = branchre
>          # The location of the buildsys config file
> -        self.kojiconfig = kojiconfig
> +        self.kojiconfig = os.path.expanduser(kojiconfig)
>          # The buildsys client to use
>          self.build_client = build_client
>          # A way to override the discovered "distribution"
> 


-- 
Pavol Babincak
Release Engineering, Red Hat


More information about the buildsys mailing list