about summary refs log tree commit diff
path: root/corepkgs/channels
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2009-03-03T14·47+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2009-03-03T14·47+0000
commit7f254706b065889c444a555ab13fbf75c1c3feee (patch)
treed0b7fb8338d8063b66ba428771857849011b8ea1 /corepkgs/channels
parent1273d355ac91f502654aba0df07068d330064e83 (diff)
* Allow the channel to declare a name for itself.
Diffstat (limited to 'corepkgs/channels')
-rw-r--r--corepkgs/channels/unpack.sh.in6
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