libzypp and zypper store their cache files in
/var/cache/zypp/{packages,raw,solv}/ and /var/cache/zypper/RPMS/
Add a single pattern to match both cases.
Signed-off-by: Olaf Hering <olaf(a)aepfle.de>
diff --git a/sysprep/sysprep_operation_package_manager_cache.ml
b/sysprep/sysprep_operation_package_manager_cache.ml
index f529769..95c0d23 100644
--- a/sysprep/sysprep_operation_package_manager_cache.ml
+++ b/sysprep/sysprep_operation_package_manager_cache.ml
@@ -25,6 +25,8 @@ let package_manager_cache_perform g root =
let packager = g#inspect_get_package_management root in
let cache_dirs =
match packager with
+ | "zypper" ->
+ Some (g#glob_expand "/var/cache/zypp*/*")
| "yum" ->
Some (g#glob_expand "/var/cache/yum/*")
| "apt" ->
--
1.7.12