Skip to content

Commit

Permalink
test ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
abathur committed Sep 20, 2023
1 parent 90becc1 commit d9932c5
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 25 deletions.
3 changes: 2 additions & 1 deletion nixpkgs/test.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@
, rlwrap
, gnutar
, bc
, flatpak
}:

let
default_packages = [ bash file findutils gettext ];
parsed_packages = [ coreutils sqlite unixtools.script gnused gawk findutils rlwrap gnutar bc ];
parsed_packages = [ coreutils sqlite unixtools.script gnused gawk findutils rlwrap gnutar bc ] ++ lib.optionals stdenv.hostPlatform.isLinux [ flatpak ];
in
rec {
module1 = resholve.mkDerivation {
Expand Down
39 changes: 15 additions & 24 deletions resholve
Original file line number Diff line number Diff line change
Expand Up @@ -1395,9 +1395,9 @@ class CommandParser(theirparse.ArgumentParser):
- version, variant, description of how they differ, platform
"""

def __init__(self, name, variant="generic"):
def __init__(self, name, variant="generic"): # , **kwargs):
theirparse.ArgumentParser.__init__(
self, prog="{:} ({:})".format(name, variant), add_help=False
self, prog="{:} ({:})".format(name, variant), add_help=False # , **kwargs
)
self.register("action", "invocations", InvocationsAction)
# self.register("action", "invocation", InvocationAction)
Expand Down Expand Up @@ -2404,33 +2404,27 @@ class ExternalCommandParsers(object):

# flatpak --help
generic.add_argument(
"-h", "--help",
"-h",
"--help",
"--version",
"--default-arch",
"--supported-arches",
"--gl-drivers",
"--installations",
"--print-updated-env",
"--print-system-only",
"-v", "--verbose",
"-v",
"--verbose",
"--ostree-verbose",
action="store_true"
action="store_true",
)
subparsers = generic.add_subparsers()
# flatpak update --help
update = subparsers.add_parser("update")
update.add_argument(
"-h", "--help",
"-u", "--user",
"--system",
action="store_true"
)
update.add_argument(
"--installation",
"--arch",
"--commit",
nargs=1
"-h", "--help", "-u", "--user", "--system", action="store_true"
)
update.add_argument("--installation", "--arch", "--commit", nargs=1)
update.add_argument(
"--force-remove",
"--no-pull",
Expand All @@ -2441,19 +2435,16 @@ class ExternalCommandParsers(object):
"--runtime",
"--app",
"--appstream",
action="store_true"
action="store_true",
)
update.add_argument("--subpath", nargs=1)
update.add_argument(
"-y", "--assumeyes",
"-y",
"--assumeyes",
"--noninteractive",
)
update.add_argument("--sideload-repo", nargs=1)
update.add_argument(
"-v", "--verbose",
"--ostree-verbose",
action="store_true"
)
update.add_argument("-v", "--verbose", "--ostree-verbose", action="store_true")

return (generic,)

Expand Down Expand Up @@ -3899,8 +3890,8 @@ class RecordCommandlike(object):
return True

def handle_external_generic(self, parsed, invocation):
if not hasattr(parsed, "commands"):
return True
# if not hasattr(parsed, "commands"):
# return True

# TODO: shimming shells in here may be a bigger crime than
# duplicating the logic in two functions would be?
Expand Down

0 comments on commit d9932c5

Please sign in to comment.