| |
@@ -91,11 +91,11 @@
|
| |
*shlex.split(Settings.mock_options),
|
| |
"-qn",
|
| |
"--enable-network",
|
| |
- "--pm-cmd",
|
| |
+ "--shell",
|
| |
"--",
|
| |
- "repoquery", "-q", "-C", "--requires", "--resolve",
|
| |
+ "dnf", "repoquery", "-q", "-C", "--requires", "--providers-of=requires",
|
| |
]
|
| |
- cmd += list(set(pkgs))
|
| |
+ cmd += [f"'{x}'" for x in set(pkgs)]
|
| |
|
| |
Settings.get_logger().debug("Running: %s", " ".join(cmd))
|
| |
try:
|
| |
@@ -128,11 +128,11 @@
|
| |
*shlex.split(Settings.mock_options),
|
| |
"-qn",
|
| |
"--enable-network",
|
| |
- "--pm-cmd",
|
| |
+ "--shell",
|
| |
"--",
|
| |
- "repoquery", "-q", "-C", "--provides",
|
| |
+ "dnf", "repoquery", "-q", "-C", "--provides",
|
| |
]
|
| |
- cmd += list(set(pkgs))
|
| |
+ cmd += [f"'{x}'" for x in set(pkgs)]
|
| |
|
| |
Settings.get_logger().debug("Running: %s", " ".join(cmd))
|
| |
try:
|
| |
@@ -174,9 +174,9 @@
|
| |
*shlex.split(Settings.mock_options),
|
| |
"-qn",
|
| |
"--enable-network",
|
| |
- "--pm-cmd",
|
| |
+ "--shell",
|
| |
"--",
|
| |
- "repoquery", "-q", "-C", "--whatprovides", req,
|
| |
+ "dnf", "repoquery", "-q", "-C", "--whatprovides", f"'{req}'",
|
| |
]
|
| |
Settings.get_logger().debug("Running: %s", " ".join(cmd))
|
| |
|
| |
@@ -273,9 +273,9 @@
|
| |
*shlex.split(Settings.mock_options),
|
| |
"-qn",
|
| |
"--enable-network",
|
| |
- "--pm-cmd",
|
| |
+ "--shell",
|
| |
"--",
|
| |
- "repoquery", "-C", "--quiet", "--file", path,
|
| |
+ "dnf", "repoquery", "-C", "--quiet", "--file", path,
|
| |
]
|
| |
Settings.get_logger().debug("Running: %s", " ".join(cmd))
|
| |
try:
|
| |
@@ -306,11 +306,11 @@
|
| |
*shlex.split(Settings.mock_options),
|
| |
"-qn",
|
| |
"--enable-network",
|
| |
- "--pm-cmd",
|
| |
+ "--shell",
|
| |
"--",
|
| |
- "repoquery", "-C", "-l",
|
| |
+ "dnf", "repoquery", "-C", "-l",
|
| |
]
|
| |
- cmd += list(set(pkgs))
|
| |
+ cmd += [f"'{x}'" for x in set(pkgs)]
|
| |
|
| |
Settings.get_logger().debug("Running: %s", " ".join(cmd))
|
| |
try:
|
| |
Running
mock
with-qn
and--pm-cmd
shows no output.In order to get meaningfull output with
-qn
we need to use--shell
and calldnf
directly.Addressed also a missing migration from
dnf
todnf5
as it was hidden by the execution through
--pm-cmd
: changed--resolve
in--providers-of=requires
.Having empty output caused several issues including a wrong detection of
directories ownership as reported and discussed in issue #515.
Fixes: #515
Signed-off-by: Sandro Bonazzola sbonazzo@redhat.com