3
5
Fork
You've already forked xut
3

xut: try to use ls(1) to create template lists and other changes. #47

Merged
mobinmob merged 9 commits from ls_to_list_dirs into master 2025年11月24日 21:09:02 +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

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
- use extract_verrev() to extract full version and revision always
- use xbps-uhelper cmpver to compare versions.
Author
Owner
Copy link

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
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"
Contributor
Copy link

xbps-uhelper cmpver "$dest_ver" "$src_ver"
🤔

xbps-uhelper cmpver "$dest_ver" "$src_ver" 🤔
Author
Owner
Copy link

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
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
Contributor
Copy link

🤗

🤗
mobinmob marked this conversation as resolved
Author
Owner
Copy link

@zenobit Your changes break updates : P

@zenobit Your changes break updates : P
Contributor
Copy link

Revert "Fix: functions run everytime"
should be deleted

Not whats broke updates...

Revert "Fix: functions run everytime" should be deleted Not whats broke updates...
Contributor
Copy link

@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
Reference in a new issue
mobinmob/xut
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?