diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2009-03-03T14·47+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2009-03-03T14·47+0000 |
commit | 7f254706b065889c444a555ab13fbf75c1c3feee (patch) | |
tree | d0b7fb8338d8063b66ba428771857849011b8ea1 | |
parent | 1273d355ac91f502654aba0df07068d330064e83 (diff) |
* Allow the channel to declare a name for itself.
-rw-r--r-- | corepkgs/channels/unpack.sh.in | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/corepkgs/channels/unpack.sh.in b/corepkgs/channels/unpack.sh.in index 1be4a39a1d9c..b1119f937cd3 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 |