diff --git a/SOURCES/rpmbuilder b/SOURCES/rpmbuilder index 0f2b1f1..f538a64 100755 --- a/SOURCES/rpmbuilder +++ b/SOURCES/rpmbuilder @@ -1,7 +1,7 @@ #!/usr/bin/env bash APP="RPMBuilder" -VER="1.1.0" +VER="1.1.1" #################################################################### @@ -364,11 +364,6 @@ checkArgs() { doExit $ERROR_ARGS fi - if [[ $download && ! -d $download ]] ; then - show "Can't download sources - download destination directory is not exist." $RED - doExit $ERROR_ARGS - fi - if [[ $remote && ! $host && ! -r $remote && ! "$remote" =~ @|~ && ! "$remote" =~ :[0-9]{1,} ]] ; then show "Can't start remote build process - you must define remote host." $RED doExit $ERROR_ARGS @@ -615,6 +610,15 @@ downloadRemoteSources() { local spec="$1" local download_count=0 + if [[ "$download" == "true" ]] ; then + download="." + fi + + if [[ ! -d $download ]] ; then + show "Can't download sources - download destination directory is not exist." $RED + doExit $ERROR_ARGS + fi + showSeparator "DOWNLOADING" local source_list=$(getSpecValue "$MACRO_SOURCE" "$spec") diff --git a/rpmbuilder.spec b/rpmbuilder.spec index ff6ab2c..680b20d 100644 --- a/rpmbuilder.spec +++ b/rpmbuilder.spec @@ -2,7 +2,7 @@ Summary: RPM package build helper Name: rpmbuilder -Version: 1.1.0 +Version: 1.1.1 Release: 0%{?dist} License: EKOL Group: Applications/System @@ -50,6 +50,9 @@ rm -rf %{buildroot} ############################################################################### %changelog +* Sun Apr 24 2016 Anton Novojilov - 1.1.1-0 +- -dl without given path download files to current directory + * Thu Apr 21 2016 Anton Novojilov - 1.1.0-0 - Improved dependecies installation process