From d8c079c8dfe6ae0d408d3493b956bf713a08addb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= Date: Tue, 26 Dec 2023 10:38:49 -0300 Subject: [PATCH] common/scripts/xbps-cycles.py: add -Q and -K options for dependencies --- common/scripts/xbps-cycles.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/common/scripts/xbps-cycles.py b/common/scripts/xbps-cycles.py index 7710381eb29..1f51fe71fd8 100755 --- a/common/scripts/xbps-cycles.py +++ b/common/scripts/xbps-cycles.py @@ -101,6 +101,10 @@ if __name__ == '__main__': help='Directory used to cache build dependencies (must exist)') parser.add_argument('-d', '--directory', default=None, help='Path to void-packages repo') + parser.add_argument('-Q', dest='check_pkgs', action='store_const', + const='yes', help='Use build dependencies for check -Q') + parser.add_argument('-K', dest='check_pkgs', action='store_const', + const='full', help='Use build dependencies for check -K') args = parser.parse_args() @@ -108,6 +112,9 @@ if __name__ == '__main__': try: args.directory = os.environ['XBPS_DISTDIR'] except KeyError: args.directory = '.' + if args.check_pkgs: + os.environ['XBPS_CHECK_PKGS'] = args.check_pkgs + pool = multiprocessing.Pool(processes = args.jobs) pattern = os.path.join(args.directory, 'srcpkgs', '*')