Skip to content

Commit

Permalink
add weak_deps option to apt
Browse files Browse the repository at this point in the history
  • Loading branch information
Enchufa2 committed Aug 10, 2023
1 parent d34f17f commit 23cef62
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion inst/service/backend/apt.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ def wrapper(pkgname):

return notavail

def install(prefixes, pkgs, exclusions):
def install(prefixes, pkgs, exclusions, weak_deps=None):
if weak_deps is not None:
apt.apt_pkg.init()
apt.apt_pkg.config["APT::Install-Recommends"] = str(weak_deps)
return operation("install", prefixes, pkgs, exclusions)

def remove(prefixes, pkgs, exclusions):
Expand Down

0 comments on commit 23cef62

Please sign in to comment.