From 0ae19466272e20d8ac3e914a4853dde7efb9d7f0 Mon Sep 17 00:00:00 2001 From: Davide Madrisan Date: Tue, 19 Aug 2014 21:41:49 +0200 Subject: [PATCH] spec-create - remove unused code Signed-off-by: Davide Madrisan --- plugins/spec-create.in | 3 --- 1 file changed, 3 deletions(-) diff --git a/plugins/spec-create.in b/plugins/spec-create.in index b6ead50..bf1ca51 100644 --- a/plugins/spec-create.in +++ b/plugins/spec-create.in @@ -587,9 +587,6 @@ ${proxy:+--proxy $proxy} ${proxy_user:+--proxy-user $proxy_user} \ [ "$pck_name" ] || notify.error $"cannot get the package name, use the \`-n' option" - [[ "${pck_newver//[0-9\.]/}" ]] && - notify.error $"invalid version number"" -- \`$pck_newver'" - [ "$pck_version" ] || pck_version=${4:-`echo $pck_tarball | sed -n "\ /[0-9]/!q # return nothing if no number is found in the package name s,.*/,, # remove directory name, if any