diff --git a/SOURCES/conf/rpmmacros_centos6 b/SOURCES/conf/rpmmacros_centos6 index 3426457..630efe2 100644 --- a/SOURCES/conf/rpmmacros_centos6 +++ b/SOURCES/conf/rpmmacros_centos6 @@ -12,7 +12,7 @@ %__arch_install_post /usr/lib/rpm/check-rpaths /usr/lib/rpm/check-buildroot # Use xz compression for payload by default -%_source_payload w7.xzdio -%_binary_payload w7.xzdio +%_source_payload w7T.xzdio +%_binary_payload w7T.xzdio ######################################################################################## diff --git a/SOURCES/conf/rpmmacros_centos7 b/SOURCES/conf/rpmmacros_centos7 index f0c6a6d..33d4b4a 100644 --- a/SOURCES/conf/rpmmacros_centos7 +++ b/SOURCES/conf/rpmmacros_centos7 @@ -18,7 +18,7 @@ %dist .el7 # Use xz compression for payload by default -%_source_payload w7.xzdio -%_binary_payload w7.xzdio +%_source_payload w7T.xzdio +%_binary_payload w7T.xzdio ######################################################################################## diff --git a/SOURCES/conf/rpmmacros_centos8 b/SOURCES/conf/rpmmacros_centos8 index b38fca4..7051fc1 100644 --- a/SOURCES/conf/rpmmacros_centos8 +++ b/SOURCES/conf/rpmmacros_centos8 @@ -18,7 +18,7 @@ %dist .el8 # Use xz compression for payload by default -%_source_payload w7.xzdio -%_binary_payload w7.xzdio +%_source_payload w7T.xzdio +%_binary_payload w7T.xzdio ######################################################################################## diff --git a/SOURCES/libexec/sources-remote.shx b/SOURCES/libexec/sources-remote.shx index dbe97bc..9f289f9 100644 --- a/SOURCES/libexec/sources-remote.shx +++ b/SOURCES/libexec/sources-remote.shx @@ -102,6 +102,11 @@ downloadSource() { show "cache feature in this case. Use -dc or --dlcache ." $YELLOW show "" fi + + if ! validateSourceFile "$dir/$file_name" ; then + error "Invalid file ${CL_BL_RED}${source_name}${CL_RED} - file type doesn't match to file content" + doExit $ERROR_SOURCE + fi fi } diff --git a/SOURCES/rpmbuilder b/SOURCES/rpmbuilder index a9a6db8..360dfb1 100755 --- a/SOURCES/rpmbuilder +++ b/SOURCES/rpmbuilder @@ -13,7 +13,7 @@ fi APP="RPMBuilder" # Utility version (String) -VER="2.5.2" +VER="2.6.0" ################################################################################ diff --git a/rpmbuilder-node.spec b/rpmbuilder-node.spec index 432af29..e3d9281 100644 --- a/rpmbuilder-node.spec +++ b/rpmbuilder-node.spec @@ -52,7 +52,7 @@ Summary: Configuration package for rpmbuilder node Name: rpmbuilder-node Version: 1.4.1 -Release: 1%{?dist} +Release: 2%{?dist} License: EKOL Group: Development/Tools URL: https://github.com/essentialkaos/rpmbuilder @@ -170,6 +170,9 @@ fi ################################################################################ %changelog +* Mon Dec 16 2019 Anton Novojilov - 1.4.1-2 +- Added threads usage for payload packing to rpmmacros files + * Sat Nov 30 2019 Anton Novojilov - 1.4.1-1 - Added rpmmacros file for CentOS 8 diff --git a/rpmbuilder.spec b/rpmbuilder.spec index 537b918..10dff26 100644 --- a/rpmbuilder.spec +++ b/rpmbuilder.spec @@ -2,7 +2,7 @@ Summary: RPM package build helper Name: rpmbuilder -Version: 2.5.2 +Version: 2.6.0 Release: 0%{?dist} License: EKOL Group: Development/Tools @@ -55,6 +55,9 @@ rm -rf %{buildroot} ################################################################################ %changelog +* Fri Dec 13 2019 Anton Novojilov - 2.6.0-0 +- Added validation for downloaded files + * Wed Dec 04 2019 Anton Novojilov - 2.5.2-0 - Removed handler for script errors