Using ls to create lists instead of find or loops. It is -a lot- faster. I know ls output is not 100% standardised, but I will try it with busybox and toybox and see if it works...
xut: try to use ls(1) to create template lists and other changes. #47
Merged
mobinmob
merged 9 commits from 2025年11月24日 21:09:02 +01:00
ls_to_list_dirs into master
mobinmob
commented 2025年11月23日 19:26:42 +01:00
Using ls to create lists instead of find or loops. It is -a lot- faster. I know ls output is not 100% standardised, but I will try it with busybox and toybox and see if it works...
@zenobit
mobinmob
added 1 commit 2025年11月23日 19:26:45 +01:00
mobinmob
added 1 commit 2025年11月23日 20:31:54 +01:00
- use extract_verrev() to extract full version and revision always - use xbps-uhelper cmpver to compare versions.
mobinmob
commented 2025年11月23日 20:33:31 +01:00
Try (once again) to use a sinle function to extract version information for templates and xbps-uhelper cmpver to compare versions.
Try (once again) to use a sinle function to extract version information for templates and `xbps-uhelper cmpver` to compare versions.
mobinmob
changed title from (削除) xut: try to use ls(1) to create template lists. (削除ここまで) to xut: try to use ls(1) to create template lists and other changes. 2025年11月23日 20:35:41 +01:00
zenobit
reviewed 2025年11月24日 16:06:27 +01:00
xut
Outdated
@ -216,3 +225,1 @@
newer=$(printf '%s\n%s\n' "$src_ver" "$dest_ver" | LC_ALL=C sort -V | sed -n '$p')
else msg error "You need a sort(1) that supports the -V argument"; fi
xbps-uhelper cmpver "$destver" "$srcver"
zenobit
commented 2025年11月24日 16:06:27 +01:00
xbps-uhelper cmpver "$dest_ver" "$src_ver"
🤔
xbps-uhelper cmpver "$dest_ver" "$src_ver"
🤔
mobinmob
commented 2025年11月24日 20:49:22 +01:00
Searching in my local clone it is fixes, maybe I did not commit it?
Searching in my local clone it is fixes, maybe I did not commit it?
mobinmob marked this conversation as resolved
zenobit
reviewed 2025年11月24日 16:07:31 +01:00
xut
Outdated
@ -14,3 +14,3 @@
#set -u # End if are here unused variables
#set -e # End on first error
#set -x # Show what script is going to do
set -x # Show what script is going to do
zenobit
commented 2025年11月24日 16:07:31 +01:00
🤗
🤗
mobinmob marked this conversation as resolved
mobinmob
added 5 commits 2025年11月24日 19:37:25 +01:00
mobinmob
commented 2025年11月24日 20:49:58 +01:00
@zenobit Your changes break updates : P
@zenobit Your changes break updates : P
mobinmob
force-pushed ls_to_list_dirs from 2025年11月24日 21:05:01 +01:00
Compare
3bf7eaae47
to 4aba621701
mobinmob
added 1 commit 2025年11月24日 21:06:59 +01:00
This reverts commit c1aca3dbff.
mobinmob
merged commit 9e5b829dd7 into master 2025年11月24日 21:09:02 +01:00
mobinmob
referenced this pull request from a commit 2025年11月24日 21:09:02 +01:00
zenobit
commented 2025年11月24日 21:21:00 +01:00
Revert "Fix: functions run everytime"
should be deleted
Not whats broke updates...
Revert "Fix: functions run everytime"
should be deleted
Not whats broke updates...
zenobit
commented 2025年11月24日 21:21:34 +01:00
@zenobit Your changes break updates : P
trailing spaces...
> @zenobit Your changes break updates : P
trailing spaces...
Sign in to join this conversation.
No reviewers
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Dependencies
No dependencies set.
Reference
mobinmob/xut!47
Loading...
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "ls_to_list_dirs"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?