diff options
author | Francois Charette <francois@archlinux.org> | 2009-07-20 18:38:28 +0200 |
---|---|---|
committer | Aaron Griffin <aaronmgriffin@gmail.com> | 2009-07-20 18:38:28 +0200 |
commit | 2b3b2eb5791e16a4c6086516cd1df37ed7305d8d (patch) | |
tree | 6a301ca6021468bc2fa7c614cfef83e9043c6003 | |
parent | 3bcb9d8c78857cb40110616c3fe08259c577fdca (diff) | |
download | dbscripts-2b3b2eb5791e16a4c6086516cd1df37ed7305d8d.tar.gz dbscripts-2b3b2eb5791e16a4c6086516cd1df37ed7305d8d.tar.xz |
Bugfix in db-functions for _grep_pkginfo
* undefined argument $pattern changed to $2
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
-rw-r--r-- | db-functions | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/db-functions b/db-functions index 359e4c0..8111c6d 100644 --- a/db-functions +++ b/db-functions @@ -58,7 +58,7 @@ repo_unlock () { #repo_unlock repo-name arch _grep_pkginfo() { local _ret - _ret="$(/usr/bin/bsdtar -xOqf "$1" .PKGINFO | /bin/grep -m 1 -E "$pattern" | /bin/sed 's|\w*\s*=\s*\(.*\)|\1|')" + _ret="$(/usr/bin/bsdtar -xOqf "$1" .PKGINFO | /bin/grep -m 1 -E "$2" | /bin/sed 's|\w*\s*=\s*\(.*\)|\1|')" echo "$_ret" } |