Merge pull request #135 from clifordsab/kiss-fix-diff

kiss: pkg_fixdeps(): Make diff work across diff-erent implementations
This commit is contained in:
dylan 2020-04-18 15:51:25 +03:00 committed by GitHub
commit 7c7aa83710
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

3
kiss
View File

@ -436,8 +436,9 @@ pkg_fixdeps() {
# Display a 'diff' of the new dependencies against # Display a 'diff' of the new dependencies against
# the old ones. '-N' treats non-existent files as blank. # the old ones. '-N' treats non-existent files as blank.
diff "$dep_file" depends ||: diff -U 3 "$dep_file" depends ||:
# Remove the package's depends file if it's empty.
[ -s depends ] || rm -f depends [ -s depends ] || rm -f depends
} }