commit: 73232537c3f7d8cb4121c0a2dee5b450de584e38
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Jun 20 12:33:01 2019 +0000
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Thu Jun 20 19:50:41 2019 +0000
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=73232537
Allow empty LICENSE in acct-* packages
Since acct-* packages do not create any files (except for keepfile
for the home directory), it is perfectly normal for the LICENSE
to be empty.
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>
repoman/lib/repoman/modules/scan/metadata/ebuild_metadata.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/repoman/lib/repoman/modules/scan/metadata/ebuild_metadata.py
b/repoman/lib/repoman/modules/scan/metadata/ebuild_metadata.py
index 4c35bbc12..2edf8f7f2 100644
--- a/repoman/lib/repoman/modules/scan/metadata/ebuild_metadata.py
+++ b/repoman/lib/repoman/modules/scan/metadata/ebuild_metadata.py
@@ -39,8 +39,8 @@ class EbuildMetadata(ScanBase):
ebuild = kwargs.get('ebuild').get()
for pos, missing_var in
enumerate(self.repo_settings.qadata.missingvars):
if not ebuild.metadata.get(missing_var):
- if kwargs.get('catdir') == "virtual" and \
- missing_var in ("HOMEPAGE", "LICENSE"):
+ if (kwargs.get('catdir') in ("acct-group",
"acct-user", "virtual")
+ and missing_var in ("HOMEPAGE",
"LICENSE")):
continue
if ebuild.live_ebuild and missing_var ==
"KEYWORDS":
continue