index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
-rwxr-xr-x | lib/mysql-functions | 12 |
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=$( |