From acd181bf73fa72fe14ab190504e49599a89eecdb Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Sep 12 2017 08:55:32 +0000 Subject: [prunerepo] avoid using --repoid for repo listing On Fedora 26, 'dnf repoquery' throws this error: dnf: error: argument --repo/--repoid: not allowed with argument --disablerepo Indeed, --repoid seems to be useless when all repositories are disabled and only one is enabled (by --repofrompath). --- diff --git a/prunerepo/prunerepo b/prunerepo/prunerepo index a7f8ba9..bee67f3 100755 --- a/prunerepo/prunerepo +++ b/prunerepo/prunerepo @@ -35,7 +35,6 @@ get_all_packages_cmd = [ 'repoquery', '--disablerepo=*', '--repofrompath=prunerepo_query,'+os.path.abspath(args.path), - '--repoid=prunerepo_query', '--enablerepo=prunerepo_query', '--refresh', '--queryformat="%{location}"',