Whamcloud - gitweb
(Finally!) remove the additional -lustre tag from the Lustre kernel RPM
[fs/lustre-release.git] / build / lbuild-sles
index 5b97064..31fd5d6 100644 (file)
@@ -75,5 +75,9 @@ rpm_BUILD_kernel_dirname() {
     local lnxmin="$3"
     local arch="$4"
 
-    echo kernel-lustre-${rpmsmptype}-${lnxmaj}${lnxmin}/linux-${lnxmaj}
+    local lustre=""
+    if $KERNEL_LUSTRE_NAMING; then
+        $lustre="-lustre"
+    fi
+    echo kernel${lustre}-${rpmsmptype}-${lnxmaj}${lnxmin}/linux-${lnxmaj}
 }