X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=build%2Flbuild;h=acef5bc28caaaf95f7d4248069667c17714c6fce;hp=450236da4df2471f685ba043ee20da7d050455e2;hb=dbbce578f816feb56a13a751a6d44cf1d1ecf4a5;hpb=45ff8142494ba8b250c7254f45cb09f77ca3d856 diff --git a/build/lbuild b/build/lbuild index 450236d..acef5bc 100755 --- a/build/lbuild +++ b/build/lbuild @@ -341,9 +341,13 @@ load_target() if [ "$EXTRA_VERSION_save" ] ; then EXTRA_VERSION="$EXTRA_VERSION_save" elif ! (( $RELEASE )) ; then - #remove the @VERSION@ (lustre version) - EXTRA_VERSION=$(echo $EXTRA_VERSION | sed -e "s/\(.*_lustre\)\..*/\1/") - EXTRA_VERSION="${EXTRA_VERSION}-${TAG}.${TIMESTAMP}" + # if there is no patch series, then this is not a lustre specific + # kernel. don't make it look like one + if [ -n "$SERIES" ]; then + #remove the @VERSION@ (lustre version) + EXTRA_VERSION=$(echo $EXTRA_VERSION | sed -e "s/\(.*_lustre\)\..*/\1/") + EXTRA_VERSION="${EXTRA_VERSION}-${TAG}.${TIMESTAMP}" + fi fi # EXTRA_VERSION=${EXTRA_VERSION//-/_}