Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/mysql-functions
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mysql-functions')
-rwxr-xr-xlib/mysql-functions12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/mysql-functions b/lib/mysql-functions
index 888a505..b9f3a1c 100755
--- a/lib/mysql-functions
+++ b/lib/mysql-functions
@@ -147,15 +147,15 @@ mysql_add_package_source() {
local repo
local upstream_package_repository_id
- if grep -qx 'PKGBUILD_mod = \S\+' "${srcinfo_file}"; then
- uses_modification=1
- else
+ if [ "${mod_git_revision}" = '0000000000000000000000000000000000000000' ]; then
uses_modification=0
- fi
- if grep -qx 'PKGBUILD = \S\+' "${srcinfo_file}"; then
- uses_upstream=1
else
+ uses_modification=1
+ fi
+ if [ "${git_revision}" = '0000000000000000000000000000000000000000' ]; then
uses_upstream=0
+ else
+ uses_upstream=1
fi
upstream_package_repository_id=$(