~mdw
/
termux-packages
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Validate that no hard links exists in package
[termux-packages]
/
build-package.sh
diff --git
a/build-package.sh
b/build-package.sh
index
7281c5f
..
c6d768c
100755
(executable)
--- a/
build-package.sh
+++ b/
build-package.sh
@@
-961,6
+961,12
@@
termux_step_post_massage() {
termux_step_create_datatar() {
# Create data tarball containing files to package:
cd "$TERMUX_PKG_MASSAGEDIR"
termux_step_create_datatar() {
# Create data tarball containing files to package:
cd "$TERMUX_PKG_MASSAGEDIR"
+
+ local HARDLINKS="$(find . -type f -links +1)"
+ if [ -n "$HARDLINKS" ]; then
+ termux_error_exit "Package contains hard links: $HARDLINKS"
+ fi
+
if [ -z "${TERMUX_PKG_METAPACKAGE+x}" ] && [ "$(find . -type f)" = "" ]; then
termux_error_exit "No files in package"
fi
if [ -z "${TERMUX_PKG_METAPACKAGE+x}" ] && [ "$(find . -type f)" = "" ]; then
termux_error_exit "No files in package"
fi