let rpm = "@RPM@"
let yumdownloader = "@YUMDOWNLOADER@"
let aptitude = "@APTITUDE@"
+let apt_cache = "@APT_CACHE@"
let dpkg = "@DPKG@"
let pacman = "@PACMAN@"
let host_cpu = "@host_cpu@"
dnl For Debian handler.
AC_CHECK_PROG(APTITUDE,[aptitude],[aptitude],[no])
+AC_CHECK_PROG(APT_CACHE,[apt-cache],[apt-cache],[no])
AC_CHECK_PROG(DPKG,[dpkg],[dpkg],[no])
dnl For ArchLinux handler.
let debian_detect () =
file_exists "/etc/debian_version" &&
- Config.aptitude <> "no" && Config.dpkg <> "no"
+ Config.aptitude <> "no" && Config.apt_cache <> "no" && Config.dpkg <> "no"
let debian_resolve_dependencies_and_download names =
let cmd =
- sprintf "apt-cache depends --recurse -i %s | grep -v '^[<[:space:]]'"
+ sprintf "%s depends --recurse -i %s | grep -v '^[<[:space:]]'"
+ Config.apt_cache
(String.concat " " (List.map Filename.quote names)) in
let pkgs = run_command_get_lines cmd in