Debug
This commit is contained in:
parent
e69cb25fd1
commit
d2171738d6
|
@ -56,8 +56,6 @@ exportPackageFiles() {
|
||||||
exportFile "srcInfo" ".SRCINFO"
|
exportFile "srcInfo" ".SRCINFO"
|
||||||
|
|
||||||
pkgFile=$(sudo -u calbuilder makepkg --packagelist)
|
pkgFile=$(sudo -u calbuilder makepkg --packagelist)
|
||||||
ls -al
|
|
||||||
echo "$pkgFile"
|
|
||||||
if [ -f "$pkgFile" ]; then
|
if [ -f "$pkgFile" ]; then
|
||||||
relPkgFile="$(realpath --relative-base="$baseDir" "$pkgFile")"
|
relPkgFile="$(realpath --relative-base="$baseDir" "$pkgFile")"
|
||||||
exportFile "pkgFile" "$relPkgFile" "$pkgFile"
|
exportFile "pkgFile" "$relPkgFile" "$pkgFile"
|
||||||
|
@ -125,13 +123,14 @@ runScript() {
|
||||||
exportPackageFiles
|
exportPackageFiles
|
||||||
namcapAnalysis
|
namcapAnalysis
|
||||||
|
|
||||||
ls -al
|
|
||||||
|
|
||||||
findArgs+=("-not" "-name" "$relPkgFile*" "-not" "-name" ".SRCINFO")
|
findArgs+=("-not" "-name" "$relPkgFile*" "-not" "-name" ".SRCINFO")
|
||||||
newFiles=$(find -H "$PWD" "${findArgs[@]}")
|
newFiles=$(find -H "$PWD" "${findArgs[@]}")
|
||||||
files=$(printf '%s\n%s\n' "$newFiles" "$oldFiles")
|
files=$(printf '%s\n%s\n' "$newFiles" "$oldFiles")
|
||||||
mapfile -t toRemove < <(echo "$files" | sort | uniq -u)
|
mapfile -t toRemove < <(echo "$files" | sort | uniq -u)
|
||||||
rm -rf "${toRemove[@]}"
|
rm -rf "${toRemove[@]}"
|
||||||
|
|
||||||
|
cd ..
|
||||||
|
ls -al
|
||||||
}
|
}
|
||||||
|
|
||||||
runScript "$@"
|
runScript "$@"
|
||||||
|
|
Loading…
Reference in New Issue