aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bpkg/system-package-manager-debian.cxx3
-rw-r--r--bpkg/system-package-manager-fedora.cxx8
2 files changed, 5 insertions, 6 deletions
diff --git a/bpkg/system-package-manager-debian.cxx b/bpkg/system-package-manager-debian.cxx
index e0b2bce..ca44658 100644
--- a/bpkg/system-package-manager-debian.cxx
+++ b/bpkg/system-package-manager-debian.cxx
@@ -1025,8 +1025,7 @@ namespace bpkg
// Failed that, assume the package to be a binless library and leave the
// main member of the package_status object empty.
//
- auto guess_main = [this, &pn, &trace] (package_status& s,
- const string& ver)
+ auto guess_main = [this, &trace] (package_status& s, const string& ver)
{
string depends (apt_cache_show (s.dev, ver));
diff --git a/bpkg/system-package-manager-fedora.cxx b/bpkg/system-package-manager-fedora.cxx
index 4d12360..873f9c9 100644
--- a/bpkg/system-package-manager-fedora.cxx
+++ b/bpkg/system-package-manager-fedora.cxx
@@ -1251,10 +1251,10 @@ namespace bpkg
// architecture. Failed that, assume the package to be a binless library
// and leave the main member of the package_status object empty.
//
- auto guess_main = [this, &pn, &trace] (package_status& s,
- const string& ver,
- const string& qarch,
- bool installed)
+ auto guess_main = [this, &trace] (package_status& s,
+ const string& ver,
+ const string& qarch,
+ bool installed)
{
vector<pair<string, string>> depends (
dnf_repoquery_requires (s.devel, ver, qarch, installed));