From 7a572b703b7207bb9bc7b2d8d3443152aac42d19 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 17 Jan 2023 10:51:29 +0200 Subject: Continue sketching system package manager interface --- bpkg/system-package-manager-debian.cxx | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 bpkg/system-package-manager-debian.cxx (limited to 'bpkg/system-package-manager-debian.cxx') diff --git a/bpkg/system-package-manager-debian.cxx b/bpkg/system-package-manager-debian.cxx new file mode 100644 index 0000000..1e43206 --- /dev/null +++ b/bpkg/system-package-manager-debian.cxx @@ -0,0 +1,28 @@ +// file : bpkg/system-package-manager-debian.cxx -*- C++ -*- +// license : MIT; see accompanying LICENSE file + +#include + +#include + +namespace bpkg +{ + // Do we use apt or apt-get? From apt(8): + // + // "The apt(8) commandline is designed as an end-user tool and it may change + // behavior between versions. [...] + // + // All features of apt(8) are available in dedicated APT tools like + // apt-get(8) and apt-cache(8) as well. [...] So you should prefer using + // these commands (potentially with some additional options enabled) in + // your scripts as they keep backward compatibility as much as possible." + + // @@ We actually need to fetch if some are not installed to get their + // versions. We can do it as part of the call, no? Keep track if + // already fetched. + + // @@ We may map multiple our packages to the same system package + // (e.g., openssl-devel) so probably should track the status of + // individual system packages. What if we "installed any version" + // first and then need to install specific? +} -- cgit v1.1