-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Opkg: search all dest installed packages instead of root only #6632
Conversation
Signed-off-by: CoiaPrant <112553141+CoiaPrant233@users.noreply.github.com>
Some more information would be nice why we need this? |
Install software to external storage without using extroot
Florian Eckert ***@***.***> 于 2023年10月16日周一 17:18写道:
… Some more information would be nice why we need this?
—
Reply to this email directly, view it on GitHub
<#6632 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/A22WZNPOAM73HLDUOFGLGULX7T3W3AVCNFSM6AAAAAA533R4FWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONRUGA3DGMJXHA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
The answer should go to the commit message and you must also add a Signed-off-by with your real name and a valid email address. Not with a mail from github |
Install software to external storage without using extroot |
In the git commit message, not this PR thread :) |
i think merge pull request can compress commit and edit commit message |
@@ -7,7 +7,12 @@ shift | |||
|
|||
case "$action" in | |||
list-installed) | |||
cat /usr/lib/opkg/status | |||
dest_dirs=$(sed -rne 's#^dest \S+ (\S+)#\1#p' /etc/opkg.conf /etc/opkg/*.conf 2>/dev/null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All of keyword, name and value words in opkg.conf may be double quoted (ref: https://git.openwrt.org/?p=project/opkg-lede.git;a=blob;f=libopkg/opkg_conf.c;h=0cbd1ccab73fb1c8051ffd811d8e2c40f010e969;hb=d038e5b6d155784575f62a66a8bb7e874173e92e#l212
Additionally, arbitrary amount of white space is allowed before, after and between directive words. For robustness reasons, the code should also fall back to /usr/lib/opkg/status in case destinations cannot be properly parsed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fallback already added.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this code modify from list-available
, so if u want to impl All of keyword, name and value words in opkg.conf may be double quoted
, i think u also need to modify list-available
.
Search all dest in
/etc/opkg.conf
listed, and output all dest installed packages