diff options
author | Jay Freeman <saurik@saurik.com> | 2008-03-08 12:05:10 +0000 |
---|---|---|
committer | Jay Freeman <saurik@saurik.com> | 2008-03-08 12:05:10 +0000 |
commit | b2c61e1caa1761f0644c0867adc8d00efa8762d9 (patch) | |
tree | b72f06788ffb1f724dce1a1fdcafc63220701ff6 | |
parent | 645d0e9c8dd17fe1433c4aabb361576571520430 (diff) |
Fixed Installed-Size and separated Essential from Priority (stage one).
git-svn-id: http://svn.telesphoreo.org/trunk@178 514c082c-b64e-11dc-b46d-3d985efe055d
-rwxr-xr-x | control.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/control.sh b/control.sh index 3fa5e9e40..f7d28c42a 100755 --- a/control.sh +++ b/control.sh @@ -15,7 +15,7 @@ cat <<EOF Package: ${PKG_NAME} EOF -if [[ ${PKG_PRIO} == required ]]; then +if [[ ${PKG_PRIO} == required || ${PKG_PRIO} == +* ]]; then cat <<EOF Essential: yes EOF @@ -28,7 +28,7 @@ EOF fi cat <<EOF -Priority: ${PKG_PRIO} +Priority: ${PKG_PRIO#+} Section: $(cat "${PKG_DATA}/_metadata/section") EOF @@ -36,6 +36,10 @@ if [[ $1 == status || $1 == available ]]; then cat <<EOF Installed-Size: $(dpkg -f "${PKG_BASE}/debs/${PKG_NAME}_${PKG_VRSN}-${PKG_RVSN}_darwin-arm.deb" Installed-Size) EOF +elif [[ $1 == control ]]; then + cat <<EOF +Installed-Size: $(du -s "${PKG_DEST}" | cut -d $'\t' -f 1) +EOF fi cat <<EOF |