diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2023-01-17 10:51:29 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2023-01-17 10:51:29 +0200 |
commit | 7a572b703b7207bb9bc7b2d8d3443152aac42d19 (patch) | |
tree | a0a18b1083d3017c067ad2669299380cf1eb4f82 /bpkg/system-package-manager-debian.cxx | |
parent | 6f41ca43cd46658dad840fb51d5fb59431ceac67 (diff) |
Continue sketching system package manager interface
Diffstat (limited to 'bpkg/system-package-manager-debian.cxx')
-rw-r--r-- | bpkg/system-package-manager-debian.cxx | 28 |
1 files changed, 28 insertions, 0 deletions
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 <bpkg/system-package-manager-debian.hxx> + +#include <bpkg/diagnostics.hxx> + +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? +} |