index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2019-07-15 14:38:28 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-07-15 14:38:28 +0200 |
commit | 5201163ec2b6dacd904bf3c994b2aaf7bef41a51 (patch) | |
tree | fd37139f471d178fdc6caea3f71f1114bfc562c0 /bin | |
parent | 2bbdac8e051f2e55d664623e6a67361bc39aeb65 (diff) |
-rwxr-xr-x | bin/nit-picker | 30 |
diff --git a/bin/nit-picker b/bin/nit-picker index 836e5d9..4382389 100755 --- a/bin/nit-picker +++ b/bin/nit-picker @@ -168,28 +168,12 @@ while pgrep -x ii >/dev/null \ ${master_mirror_rsync_command} \ "${master_mirror_rsync_directory}/pool/${parameters}" \ "${tmp_dir}/" - bsdtar -Oxf "${tmp_dir}/${parameters}" '.PKGINFO' \ - | sed -n ' - s/^\(\(make\)\?depend\) = /\1 / - T - p - ' \ - | sed ' - s/\(=\|[<>]=\?\)\([^-]\+\)\(-[^-]\+\)\?$/ \1 \2/ - t - s/$/ >= '"${min_version}"'/ - ' \ - | sed ' - s/:\(\S\+\)$/ \1/ - t - s/ \(\S\+\)$/ 0 \1/ - ' \ - | tr '[:upper:]' '[:lower:]' \ - | sort -u \ - > "${tmp_dir}/pkg-deps" + extract_dependencies_from_package \ + "${tmp_dir}/${parameters}" \ + "${tmp_dir}/pkg-deps" { printf 'SELECT' - printf ' IF(`dependency_types`.`name`="run","depend","makedepend"),' + printf ' `dependency_types`.`name`,' printf '`install_targets`.`name`,' printf '`dependencies`.`version_relation`,' printf '`versions`.`epoch`,' @@ -204,15 +188,11 @@ while pgrep -x ii >/dev/null \ mysql_package_name_query printf '="%s"' \ "${parameters}" - printf ' AND `dependency_types`.`name` IN ("run","make")' + printf ' AND `dependency_types`.`name` IN ("run","make","check")' printf ';\n' } \ | mysql_run_query \ | tr '\t' ' ' \ - | sed ' - /^depend base >= '"${min_version%:*}"' '"${min_version#*:}"'$/d - /^makedepend base-devel >= '"${min_version%:*}"' '"${min_version#*:}"'$/d - ' \ | sort -u \ > "${tmp_dir}/db-deps" if ! diff -q "${tmp_dir}/db-deps" "${tmp_dir}/pkg-deps"; then |