# HG changeset patch
# User Pascal Bellard `gettext "Linkable packages"`
+' ;;
*\ cat\ *)
#
# List all available packages by category on mirror. Listing all
@@ -425,6 +468,8 @@
case $cmd in
install)
cmd=get-install opt=--forced ;;
+ link)
+ opt=$(readlink $LOCALSTATE/fslink) ;;
esac
search_form
sidebar
@@ -592,6 +637,11 @@
repository=${cmd#rm-repo=}
rm -rf $LOCALSTATE/undigest/$repository ;;
esac
+ [ "$cmd" == "$(gettext "Set link")" ] &&
+ [ -d "$(GET link)/$INSTALLED" ] &&
+ ln -fs $(GET link) $LOCALSTATE/fslink
+ [ "$cmd" == "$(gettext "Remove link")" ] &&
+ rm -f $LOCALSTATE/fslink
cache_files=`find /var/cache/tazpkg -name *.tazpkg | wc -l`
cache_size=`du -sh /var/cache/tazpkg`
sidebar
@@ -700,6 +750,20 @@
+$(gettext "This link point to the root of another SliTaz installation. \ +You will be able to install packages using soft links to it.") +
+ EOT version=$(cat /etc/slitaz-release) cat << EOT @@ -765,6 +829,13 @@