Skip to content

Commit

Permalink
Merge pull request #96 from getsolus/configurable-eopkg-cmd-in-ypkg-i…
Browse files Browse the repository at this point in the history
…nstall-deps

ypkg-install-deps: Add -e/--eopkg-cmd argument
  • Loading branch information
ermo authored Oct 23, 2024
2 parents 021c815 + d4d1677 commit e366d27
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ypkg-install-deps
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ def main():
"i.e. no prompt", action="store_true")
parser.add_argument("-D", "--output-dir", type=str,
help="Ignored in ypkg-install-deps")
parser.add_argument("-e", "--eopkg-cmd", type=str, default="eopkg.py3",
help="Defaults to 'eopkg.py3'")
# Main file
parser.add_argument("filename", help="Path to the ypkg YAML file")

Expand Down Expand Up @@ -156,9 +158,9 @@ def main():
sys.exit(0)

if os.geteuid() != 0:
cmd = "sudo eopkg install {}".format(" ".join(ndeps))
cmd = "sudo {} install {}".format(args.eopkg_cmd, " ".join(ndeps))
else:
cmd = "eopkg install {}".format(" ".join(ndeps))
cmd = "{} install {}".format(args.eopkg_cmd, " ".join(ndeps))

if args.force:
cmd += " --yes-all"
Expand Down

0 comments on commit e366d27

Please sign in to comment.