From 7f254706b065889c444a555ab13fbf75c1c3feee Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 3 Mar 2009 14:47:39 +0000 Subject: [PATCH] * Allow the channel to declare a name for itself. --- corepkgs/channels/unpack.sh.in | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/corepkgs/channels/unpack.sh.in b/corepkgs/channels/unpack.sh.in index 1be4a39a1..b1119f937 100644 --- a/corepkgs/channels/unpack.sh.in +++ b/corepkgs/channels/unpack.sh.in @@ -8,9 +8,15 @@ inputs=($inputs) for ((n = 0; n < ${#inputs[*]}; n += 2)); do channelName=${inputs[n]} channelTarball=${inputs[n+1]} + echo "unpacking channel $channelName" + @bunzip2@ < $channelTarball | @tar@ xf - + if test -e */channel-name; then + channelName="$(@coreutils@/cat */channel-name)" + fi + nr=1 attrName=$(echo $channelName | @tr@ -- '- ' '__') dirName=$attrName