We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f55d8b commit 9bb4be1Copy full SHA for 9bb4be1
pip/flatpak-pip-generator.py
@@ -70,7 +70,7 @@
70
"--runtime",
71
help=(
72
"Specify a flatpak to run pip inside of a sandbox, "
73
- "ensures python version compatibility"
+ "ensures python version compatibility. Format: $RUNTIME_ID//$RUNTIME_BRANCH"
74
),
75
)
76
parser.add_argument(
@@ -334,6 +334,12 @@ def fprint(string: str) -> None:
334
pip_executable = "pip2" if opts.python2 else "pip3"
335
336
if opts.runtime:
337
+ parts = opts.runtime.split("//", 1)
338
+ if len(parts) != 2 or not parts[0] or not parts[1]:
339
+ sys.exit(
340
+ "Runtime argument must be in the following format: $RUNTIME_ID//$RUNTIME_BRANCH"
341
+ )
342
+
343
flatpak_cmd = [
344
"flatpak",
345
"--devel",
0 commit comments