Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 313077

Summary: sys-apps/portage: repoman feature suggestion: user-supplied additional checks ("plugins")
Product: Portage Development Reporter: Andreas K. Hüttel <dilfridge>
Component: RepomanAssignee: Portage team <dev-portage>
Status: RESOLVED WONTFIX    
Severity: enhancement    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Andreas K. Hüttel archtester gentoo-dev 2010-04-04 11:23:24 UTC
A great feature for repoman would be if I could place some scriptlets in a directory (~/.repoman/usertests/), which are called somehow during "repoman full" and report success/failure back. 

Example: 
* Checking if the $Header $ tag has been blanked out after copying an ebuild from the main tree to an overlay

This would also be a good way to add features, which could slowly migrate into the main program (via a similar system directory).
Comment 1 Zac Medico gentoo-dev 2010-04-04 18:12:54 UTC
For now, you can add a class inside /usr/lib/portage/pym/repoman/checks.py and add it's name to the _constant_checks variable that's near the bottom. If we implement the ~/.repoman/usertests/ idea that you suggest, then you'll have to put python files in there which contain classes like those in checks.py.
Comment 2 Alec Warner (RETIRED) archtester gentoo-dev Security 2010-04-04 18:26:31 UTC
I may end up working on this for work; we will see.
Comment 3 Brian Dolbec (RETIRED) gentoo-dev 2016-02-03 15:23:21 UTC
I am currently near the end of the repoman rewrite stage2 which is the modularization and plugin system stage.

But, modules are not quite plug and play.  Many of them are dependant on other modules being run before and needing data provided by them for later checks.

As part of stage3 of the rewrite, I will work on making that configurable via a config file.  Once that is done, you will be able to install an optional module and configure it into the correct run slot.

To be fully plug and play would mean creating a dependency system for module run order.  I'm not sure if that will be worth it, also it will add to the run time.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-12 03:18:25 UTC
repoman support has been removed per bug 835013.

Please file a new bug (or, I suppose, reopen this one) if you feel this check is still applicable to pkgcheck and doesn't already exist.