# HG changeset patch # User Aleksej Bobylev # Date 1450525801 -7200 # Node ID 06763cedfc7c212f71fdd7fd1f0f843013aa50f7 # Parent 879df97289566c6b7d0f8014ec98692f7d4d1562 Module 'convert': fix working in general and with .pet packages in particular (thanks xaropebr) diff -r 879df9728956 -r 06763cedfc7c modules/convert --- a/modules/convert Fri Dec 18 11:39:34 2015 +0200 +++ b/modules/convert Sat Dec 19 13:50:01 2015 +0200 @@ -59,7 +59,7 @@ SHORT_DESC="$descrip" WEB_SITE="$url" MAINTAINER="$maintainer" -DEPENDS="$(find_depends)" +DEPENDS="$(find_depends .)" EOT [ -s $file/var/lib/upkg/files/*.config.bz2 ] && cat >> "$file/receipt" <> "$file/receipt" <> "$file/receipt" < "$file/receipt" <> "$file/receipt" <> "$file/receipt" </dev/null - . $package*/*.specs - desc="$PETMENUDESCR" + busybox tar -xzf "$PACKAGE_FILE" + + PET_SPECS="$(find $TMP_DIR -maxdepth 2 -name 'pet.specs')" + if [ -e "$PET_SPECS" ]; then + debug "pet.specs with '|'" + desc="$(awk -F'|' '{print $10}' $PET_SPECS)" + debug "desc='$desc'" + else + # TODO: I need to have '.pet' file that will work this way! + . $package*/*.specs + desc="$PETMENUDESCR" + fi mv $package*/ fs finish_convert_puppy } @@ -391,7 +406,7 @@ SHORT_DESC="$desc" WEB_SITE="http://www.slax.org/" MAINTAINER="nobody@slitaz.org" -DEPENDS="$(find_depends)" +DEPENDS="$(find_depends .)" EOT show_unresolved_lib "$file/receipt" [ -f $file/fs/var/log/scripts/$package* ] && cat >> "$file/receipt" <> "$file/receipt" <> "$file/receipt" - echo "DEPENDS=\"$(find_depends)\"" >> "$file/receipt" + echo "DEPENDS=\"$(find_depends .)\"" >> "$file/receipt" [ -s 'conffiles' ] && cat >> "$file/receipt" <> "$TMP_DIR/$file/receipt" + echo "DEPENDS=\"$(find_depends .)\"" >> "$TMP_DIR/$file/receipt" show_unresolved_lib "$TMP_DIR/$file/receipt" tazpkg pack "$file" mv "$file.tazpkg" "$TOP_DIR" @@ -622,7 +637,7 @@ HOST_ARCH="$HOST_ARCH" CONFIG_FILES="$(sed '/conf_files<\/key>/,//!d;/array>/d;//d;s/.*>\(.*\)<.*/\1/' fs/props.plist)" -DEPENDS="$(find_depends)" +DEPENDS="$(find_depends .)" EOT while read script func ; do @@ -669,7 +684,7 @@ SHORT_DESC="tinycore package $(basename "$PACKAGE_FILE")" WEB_SITE="http://tinycorelinux.net/" MAINTAINER="nobody@slitaz.org" -DEPENDS="$(find_depends)" +DEPENDS="$(find_depends .)" EOT show_unresolved_lib "$file/receipt" script="$file/fs/usr/local/tce.installed/$PACKAGE" @@ -729,6 +744,9 @@ } + +PACKAGE_FILE="$(realpath "$PACKAGE_FILE")" +debug "PACKAGE_FILE='$PACKAGE_FILE'" if [ "$(dd if="$PACKAGE_FILE" bs=8 count=1 skip=1 2>/dev/null)" == 'debian-b' ]; then convert_deb else