revdep use 'scratch deplist' to sort dependency order

This commit is contained in:
emmett1
2019-12-22 23:09:11 +08:00
parent 7b2db5fb17
commit 8059c69454

2
revdep
View File

@@ -76,7 +76,7 @@ parse_opt() {
}
rebuild() {
for allpkg in $(pkgdeplist -l -i $ALLPKG | cut -d ' ' -f2); do
for allpkg in $(scratch deplist $ALLPKG | awk '{print $2}'); do
for pkg in $ALLPKG; do
if [ $pkg = $allpkg ]; then
if [ -z "$order" ]; then