mirror of
https://github.com/outbackdingo/scratchpkg.git
synced 2026-02-05 00:25:53 +00:00
updated
This commit is contained in:
25
scratch
25
scratch
@@ -454,6 +454,23 @@ updports() {
|
||||
|
||||
}
|
||||
|
||||
duplicateports() {
|
||||
|
||||
dup=$(find ${PORT_REPO[@]} -type d | rev | cut -d '/' -f1 | rev | sort | uniq -d)
|
||||
|
||||
if [ "$dup" ]; then
|
||||
for dp in $dup; do
|
||||
for repo in ${PORT_REPO[@]}; do
|
||||
reponame=$(basename $repo)
|
||||
[ -d $repo/$dp ] && echo "$repo/$dp"
|
||||
done
|
||||
done
|
||||
else
|
||||
msg "No duplicate ports found."
|
||||
fi
|
||||
|
||||
}
|
||||
|
||||
interrupted() {
|
||||
exit 1
|
||||
}
|
||||
@@ -541,6 +558,9 @@ parse_options() {
|
||||
--no-backup)
|
||||
NO_BACKUP=yes
|
||||
;;
|
||||
-dup|--duplicate-ports)
|
||||
DUPLICATE_PORTS=yes
|
||||
;;
|
||||
-l|--list-installed)
|
||||
LIST_INSTALLED=yes
|
||||
;;
|
||||
@@ -696,6 +716,11 @@ main() {
|
||||
showinfo
|
||||
exit 0
|
||||
fi
|
||||
### SHOW SCRATCHPKG INFO ###
|
||||
if [ "$DUPLICATE_PORTS" ]; then
|
||||
duplicateports
|
||||
exit 0
|
||||
fi
|
||||
|
||||
checkdirexist "$INDEX_DIR"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user