This fix was already there:
https://git.fedorahosted.org/cgit/rpkg.git/commit/?id=0bc5050ae5644ddbf8765b7c5c57478b60969893

There wasn't any release with this fix which might be the reason why you
haven't noticed that. I haven't applied your patch but made that fix
more explicit:
https://git.fedorahosted.org/cgit/rpkg.git/commit/?id=2477ebd674301b8e604cd9e97346aca703c99b93

On 09/07/2014 05:25 AM, Lars R. Damerow wrote:
> From: "Lars R. Damerow" <[email protected]>
> 
> Before this change, the list of files generated for an empty repo would be
> [''] instead of []. Now '' gets removed from the list and importing srpms into
> an empty repo works properly.
> ---
>  src/pyrpkg/__init__.py | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/src/pyrpkg/__init__.py b/src/pyrpkg/__init__.py
> index 9260894..2908c22 100644
> --- a/src/pyrpkg/__init__.py
> +++ b/src/pyrpkg/__init__.py
> @@ -1295,6 +1295,8 @@ class Commands(object):
>  
>          # Get a list of files we're currently tracking
>          ourfiles = self.repo.git.ls_files().split('\n')
> +        if ourfiles == ['']:
> +            ourfiles = []
>          # Trim out sources and .gitignore
>          for file in ('.gitignore', 'sources', ''):
>              try:
> 


-- 
Pavol Babincak
Release Engineering, Red Hat
--
buildsys mailing list
[email protected]
https://admin.fedoraproject.org/mailman/listinfo/buildsys

Reply via email to