public inbox for gentoo-portage-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-portage-dev] [PATCH] [repoman] Allow empty LICENSE in acct-* packages
@ 2019-06-20 12:33 Michał Górny
  2019-06-20 19:55 ` Zac Medico
  0 siblings, 1 reply; 2+ messages in thread
From: Michał Górny @ 2019-06-20 12:33 UTC (permalink / raw
  To: gentoo-portage-dev; +Cc: Michał Górny

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.
---
 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
-- 
2.22.0



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-06-20 19:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-20 12:33 [gentoo-portage-dev] [PATCH] [repoman] Allow empty LICENSE in acct-* packages Michał Górny
2019-06-20 19:55 ` Zac Medico

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox