Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #34 from Ratler/symsnotowned

syms_not_owned() causes symlinks to become alien
  • Loading branch information...
commit 5c5b927da2e98dd353ad6916eae59a10201b1297 2 parents 96a3a19 + 43bd964
@sofar sofar authored
Showing with 1 addition and 23 deletions.
  1. +0 −15 libs/build.lunar
  2. +1 −8 libs/tracking.lunar
View
15 libs/build.lunar
@@ -327,21 +327,6 @@ default_post_build() {
}
-syms_not_owned() {
- local DEST
- debug_msg "syms_not_owned ($@)"
- while read ITEM ; do
- if [ -h "$ITEM" ] && [ -f "$ITEM" ]; then
- DEST=$(basename $(ls -la "$ITEM" | cut -d '>' -f2 | cut -c 2- ) )
- if ! grep -q "$DEST" "$1" ; then
- echo -n "$ITEM\|"
- echo "$ITEM" >> $TMPDIR/$MODULE.rejected.symlinks
- fi
- fi
- done < $1
-}
-
-
prepare_module_config() {
debug_msg "prepare_module_config ($@)"
if [ ! -e "$MODULE_CONFIG" ] ; then
View
9 libs/tracking.lunar
@@ -78,14 +78,7 @@ create_install_log() {
echo "$COMPILE_LOGS/$MODULE-$VERSION.xz" >> $TMP_INST_LOG
echo "$MD5SUM_LOGS/$MODULE-$VERSION" >> $TMP_INST_LOG
- MISOWNED_SYMLINKS=$(syms_not_owned $TMP_INST_LOG
- echo -n "/dev/null")
-
- if [ "$MISOWNED_SYMLINKS" == "/dev/null" ] ; then
- install -m644 $TMP_INST_LOG $INST_LOG
- else
- grep -v "$MISOWNED_SYMLINKS" "$TMP_INST_LOG" > $INST_LOG
- fi
+ install -m644 $TMP_INST_LOG $INST_LOG
temp_destroy $TMP_INST_LOG
}
Please sign in to comment.
Something went wrong with that request. Please try again.