Commit 286681e1 authored by Seblu's avatar Seblu
Browse files

seblu-commit: PKGBUILD parsing is not available

parent 783f9ada
Loading
Loading
Loading
Loading
+7 −12
Original line number Diff line number Diff line
@@ -105,8 +105,6 @@ shift $((OPTIND - 1));

(( $# >= 1 )) || usage

# if packages are on command line add them, otherwise look in PKGBUILD
if (( $# > 0 )); then
for _pkg; do
	case "$_pkg" in
		*-i686$PKGEXT) to_32+=("$_pkg");;
@@ -114,9 +112,6 @@ if (( $# > 0 )); then
		*-any$PKGEXT) to_32+=("$_pkg"); to_64+=("$_pkg");;
	esac
done
else
	source_pkgbuild
fi

if (( ${#to_32[@]} + ${#to_64[@]} == 0 )); then
	echo 'No package to add' >&2