Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Marek <mmarek@suse.cz>2011-08-09 00:40:19 +0200
committerMichal Marek <mmarek@suse.cz>2011-08-09 00:40:19 +0200
commit6478acafeb5e37f820b1ac1be734f5ab346fe77e (patch)
treeadbf6e41e5201bf0d5643553185d27cc2e6e6c47
parent1a5da54bbe5effc641c54e6b79309b05c54dd500 (diff)
scripts/wd-functions.sh: Fix for 3.1 and adapt for new mirror in Prague
-rw-r--r--scripts/wd-functions.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/wd-functions.sh b/scripts/wd-functions.sh
index f5e031cf8d..8a3a4e8bb3 100644
--- a/scripts/wd-functions.sh
+++ b/scripts/wd-functions.sh
@@ -45,7 +45,11 @@ _find_tarball()
set -- ${version//[.-]/ }
major=$1.$2
- for dir in . $MIRROR {/mounts,/cml,}/mirror/kernel; do
+ case "$major" in
+ 3.*)
+ major=3.x
+ esac
+ for dir in . $MIRROR {/mounts,/labs,}/mirror/kernel; do
for subdir in "" "/v$major" "/testing" "/v$major/testing"; do
if test -r "$dir$subdir/linux-$version.tar.bz2"; then
echo "$dir$subdir/linux-$version.tar.bz2"