Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pmbootstrap
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
postmarketOS
pmbootstrap
Commits
da437cdc
Commit
da437cdc
authored
6 years ago
by
Grant Miller
Browse files
Options
Downloads
Patches
Plain Diff
Add package completion proof of concept (very bad)
parent
048ef0e6
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pmb/helpers/other.py
+8
-0
8 additions, 0 deletions
pmb/helpers/other.py
pmb/parse/arguments.py
+1
-1
1 addition, 1 deletion
pmb/parse/arguments.py
with
9 additions
and
1 deletion
pmb/helpers/other.py
+
8
−
0
View file @
da437cdc
...
...
@@ -24,6 +24,14 @@ import pmb.config
import
pmb.helpers.run
def
getpackagelist
(
aportsdir
):
packages
=
set
()
for
dir
in
os
.
listdir
(
aportsdir
):
for
package
in
os
.
listdir
(
'
aports/
'
+
dir
):
packages
.
add
(
package
)
return
packages
def
folder_size
(
args
,
path
):
"""
Run `du` to calculate the size of a folder (this is less code and
...
...
This diff is collapsed.
Click to expand it.
pmb/parse/arguments.py
+
1
−
1
View file @
da437cdc
...
...
@@ -430,7 +430,7 @@ def arguments():
"
is incompatible with how Alpine
'
s abuild handles it.
"
,
dest
=
"
ignore_depends
"
)
for
action
in
[
checksum
,
build
,
aportgen
]:
action
.
add_argument
(
"
packages
"
,
nargs
=
"
+
"
)
action
.
add_argument
(
"
packages
"
,
nargs
=
"
+
"
,
metavar
=
"
PACKAGES
"
,
choices
=
pmb
.
helpers
.
other
.
getpackagelist
(
"
aports
"
)
)
# Action: kconfig_check / apkbuild_parse
kconfig_check
=
sub
.
add_parser
(
"
kconfig_check
"
,
help
=
"
check, whether all
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment