summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman <saurik@saurik.com>2008-05-13 11:13:17 +0000
committerJay Freeman <saurik@saurik.com>2008-05-13 11:13:17 +0000
commita7bd979f8584aec6cc9b87d04aeb617d16c5c0b5 (patch)
tree4e4e74fd789f6bbdc64855a5a906526cd071f8cf
parent12b1befddaaabf7fc181cb5d51342d49b8781e43 (diff)
Added support for Replaces: and Depends: versions.
git-svn-id: http://svn.telesphoreo.org/trunk@286 514c082c-b64e-11dc-b46d-3d985efe055d
-rwxr-xr-xcontrol.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/control.sh b/control.sh
index 9ab5022ac..296081ed2 100755
--- a/control.sh
+++ b/control.sh
@@ -71,6 +71,11 @@ for dep in "${PKG_DEPS[@]}"; do
fi
echo -n " $(basename "${dep}" .dep)"
+
+ ver=${PKG_DATA}/_metadata/${dep%.dep}.ver
+ if [[ -e "${ver}" ]]; then
+ echo -n " (>= $(cat "${ver}"))"
+ fi
done
if [[ -e ${PKG_DATA}/_metadata/depends ]]; then
@@ -88,6 +93,12 @@ if [[ ${comma+@} == @ ]]; then
echo
fi
+if [[ -e ${PKG_DATA}/_metadata/replaces ]]; then
+ cat <<EOF
+Replaces: $(cat "${PKG_DATA}/_metadata/replaces")
+EOF
+fi
+
if [[ -e ${PKG_DATA}/_metadata/conflicts ]]; then
cat <<EOF
Conflicts: $(cat "${PKG_DATA}/_metadata/conflicts")