summaryrefslogtreecommitdiff
path: root/control.sh
diff options
context:
space:
mode:
authorSam Bingner <sam@bingner.com>2018-12-07 13:01:05 -1000
committerSam Bingner <sam@bingner.com>2018-12-07 13:01:05 -1000
commitdabe8669a56fca398da9a7dd117eb74f874cddc0 (patch)
tree1e9f41f484e72a02652b600498a7b09aee62b7e6 /control.sh
parentbae6eae573376ebc0e942e88c4f6eaea9b0f1574 (diff)
Update to use libapt instead of apt7-lib for apt1.4+ and add apt-rdepends
Diffstat (limited to 'control.sh')
-rwxr-xr-xcontrol.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/control.sh b/control.sh
index 48372f725..45e2df32e 100755
--- a/control.sh
+++ b/control.sh
@@ -123,7 +123,7 @@ if [[ ! -e ${PKG_DATA}/_metadata/depends_ ]]; then
comma=
fi
- echo -n " $(cat "${PKG_DATA}/_metadata/depends")"
+ echo -n " $(cat "${PKG_DATA}/_metadata/depends" | sed -e s/%MYVERSION%/${PKG_VRSN%-*}/)"
fi
if [[ ${comma+@} == @ ]]; then
@@ -147,7 +147,7 @@ fi
if [[ -e ${PKG_DATA}/_metadata/provides ]]; then
cat <<EOF
-Provides: $(cat "${PKG_DATA}/_metadata/provides")
+Provides: $(cat "${PKG_DATA}/_metadata/provides" | sed -e s/%MYVERSION%/${PKG_VRSN%-*}/)
EOF
fi