From 47004c9601147b4c5c55c2bd6401bda8b6be0406 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Fabian=20Silva=20Delgado?= Date: Fri, 12 Feb 2016 10:27:07 -0300 Subject: Since new generation of expac has been released, expac-relative isn't needed for libredbdiff anymore --- src/abslibre-tools/libredbdiff | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/abslibre-tools/libredbdiff b/src/abslibre-tools/libredbdiff index 1d1d191..09c7ad1 100755 --- a/src/abslibre-tools/libredbdiff +++ b/src/abslibre-tools/libredbdiff @@ -170,21 +170,6 @@ repo_test() { fi } -expac_version_test() { - if ! pkgname="$(pacman -Qoq expac 2> /dev/null)" ; then - die "The command expac could not be found installed. The package pcr/expac-relative 4-2.parabola1 (or later) must be installed." - elif [[ $pkgname == expac-git ]] ; then - true - elif [[ $pkgname == expac-relative ]] ; then - expac_ver="$(expac %v expac-relative)" - if [[ $(vercmp "${expac_ver}" 4-2.parabola1) == -1 ]] ; then - die "The version of expac-relative installed on the system is lower than needed." - fi - else - die "expac command must be provided by pcr/expac-relative version 4-2.parabola1 (or later). This package must be installed." - fi -} - compare_pkgs() { local cmp if [[ ${verarch[$pkgname]} ]] ; then @@ -345,8 +330,6 @@ main() { "$cmd" fi - expac_version_test - pacman --config "${conffilearch}" -Ss | \ grep -v '^ ' | \ awk -F/ '{print $2}' \ -- cgit v1.2.2