Whamcloud - gitweb
Branch b1_8
authoryangsheng <yangsheng>
Tue, 7 Jul 2009 02:38:57 +0000 (02:38 +0000)
committeryangsheng <yangsheng>
Tue, 7 Jul 2009 02:38:57 +0000 (02:38 +0000)
b=20009

i=brian, wangyb

Fix for sles11 patchless build.

build/lbuild-sles11

index daab643..2e4185c 100644 (file)
@@ -64,6 +64,10 @@ unpack_linux_devel_rpm-sles11() {
 
     local kernelrpm
     local wanted_kernel="${lnxmaj}${lnxmin}${TARGET_DELIMITER}${lnxrel}"
+    if $PATCHLESS; then
+# this $PATCHLESS block should go away when bug 19336 lands.
+        wanted_kernel="${lnxmaj}${lnxmin}${TARGET_DELIMITER}${real_lnxrel}"
+    fi
     # this is a hack that should go away when the modified lustre kernel
     # Provides kernel-default-base                        vvvvvvvvv
     if ! kernelrpm=$(find_rpm "$rpmdir" provides "^kernel-(lustre-)?default-base = $wanted_kernel"); then