[Libguestfs] [PATCH 4/4] rpm: opensuse: disable recommends with old zypper

Pino Toscano ptoscano at redhat.com
Tue Aug 19 13:47:23 UTC 2014


When using zypper < 1.9.14, disable the recommends when "installing"
packages locally, reducing the number of packages being downloaded.
---
 src/rpm.ml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/rpm.ml b/src/rpm.ml
index ee3a163..434f15b 100644
--- a/src/rpm.ml
+++ b/src/rpm.ml
@@ -340,7 +340,7 @@ and opensuse_download_all_packages pkgs dir =
           --pkg-cache-dir %s \\
           --gpg-auto-import-keys --no-gpg-checks --non-interactive \\
           install \\
-          --auto-agree-with-licenses --download-only \\
+          --auto-agree-with-licenses --download-only --no-recommends \\
           %s"
         Config.zypper
         (if !settings.debug >= 1 then " --verbose --verbose" else " --quiet")
-- 
2.0.4




More information about the Libguestfs mailing list