Closed ben-grande closed 4 months ago
Try that:
diff --git a/qubesbuilder/plugins/chroot_rpm/__init__.py b/qubesbuilder/plugins/chroot_rpm/__init__.py
index 5b7d31c..ed9b7af 100644
--- a/qubesbuilder/plugins/chroot_rpm/__init__.py
+++ b/qubesbuilder/plugins/chroot_rpm/__init__.py
@@ -145,7 +145,7 @@ class RPMChrootPlugin(RPMDistributionPlugin, ChrootPlugin):
)
]
for package in additional_packages:
- mock_cmd += ["--install", package]
+ mock_cmd += ["--install", f"'{package}'"]
cmd.append(" ".join(mock_cmd))
try:
executor.run(
Thank you, with that fix, it worked!
How to file a helpful issue
Qubes OS release
R4.2, Builder V2 commit bdd84da922fcd65ba3dc4df9a4161b67869374ea
Brief summary
I tried to escape the packages with
package\(sample\)
"package(sample)"
But each time it fails at a different stage. It is passed directly to the shell without special treatment. Each package name should be quoted to avoid shell syntax errors.
Steps to reproduce
Add the following file to
cache.yml
Include the cache.yml:
Try to init the cache:
Expected behavior
Packages cached suffesfully.
Actual behavior