diff options
Diffstat (limited to 'bpkg/pkg-build-collect.cxx')
-rw-r--r-- | bpkg/pkg-build-collect.cxx | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/bpkg/pkg-build-collect.cxx b/bpkg/pkg-build-collect.cxx index 11d1848..8442b15 100644 --- a/bpkg/pkg-build-collect.cxx +++ b/bpkg/pkg-build-collect.cxx @@ -30,7 +30,7 @@ namespace bpkg // build_package // const system_package_status* build_package:: - system_install () const + system_status () const { assert (action); @@ -40,20 +40,24 @@ namespace bpkg assert (sys_rep); if (const system_package* sys_pkg = sys_rep->find (name ())) - { - const system_package_status* s (sys_pkg->system_status); - - return s != nullptr && - (s->status == system_package_status::partially_installed || - s->status == system_package_status::not_installed) - ? s - : nullptr; - } + return sys_pkg->system_status; } return nullptr; } + const system_package_status* build_package:: + system_install () const + { + if (const system_package_status* s = system_status ()) + return s->status == system_package_status::partially_installed || + s->status == system_package_status::not_installed + ? s + : nullptr; + + return nullptr; + } + bool build_package:: user_selection () const { |