From 55a54ea4d3fe7fee52f51e5bde43513ae281a8a9 Mon Sep 17 00:00:00 2001 From: clime Date: Sep 13 2017 08:44:00 +0000 Subject: [rpmbuild] fix downstream/upstream condition --- diff --git a/rpmbuild/copr_rpmbuild/providers/scm.py b/rpmbuild/copr_rpmbuild/providers/scm.py index 25c3d74..4c72be3 100644 --- a/rpmbuild/copr_rpmbuild/providers/scm.py +++ b/rpmbuild/copr_rpmbuild/providers/scm.py @@ -157,7 +157,7 @@ class ScmProvider(Provider): extra_content.append(target_path) include = lambda f: not re.search(r'(^README|.spec$|^\.|tito.props)', f) - if not filter(include, os.listdir(repo_subpath)): + if not list(filter(include, os.listdir(repo_subpath))): downstream_repo = True if not downstream_repo and source_zero: