-
- repo_pkg_list=$(curl -s -o - http://apt.arvados.org/${D}/pool/main/${repo_subdir}/${pkgname}/)
- echo "${repo_pkg_list}" |grep -q ${full_pkgname}
- if [ $? -eq 0 ] ; then
- echo "Package $full_pkgname exists upstream, not rebuilding, downloading instead!"
- curl -s -o "$WORKSPACE/packages/$TARGET/${full_pkgname}" http://apt.arvados.org/${D}/pool/main/${repo_subdir}/${pkgname}/${full_pkgname}
- return 1
- elif test -f "$WORKSPACE/packages/$TARGET/processed/${full_pkgname}" ; then
- echo "Package $full_pkgname exists, not rebuilding!"
- return 1
- else
- echo "Package $full_pkgname not found, building"
- return 0
- fi