Commit 65600da3 authored by François Grisez's avatar François Grisez

Enable %pre, %post, %preun, %postun for Debian packages

parent 16f1fb5a
......@@ -29,7 +29,7 @@ export RPM_TOPDIR="@LINPHONE_BUILDER_WORK_DIR@/rpmbuild"
if [ "@PLATFORM@" = "Debian" ]; then
DEBS_TOPDIR="$RPM_TOPDIR/DEBS"
mkdir -p "$DEBS_TOPDIR" && cd "$DEBS_TOPDIR"
find "$RPM_TOPDIR/RPMS" -iname "*@LINPHONE_BUILDER_RPMBUILD_NAME@*.rpm" -exec fakeroot alien -d --keep-version {} +
find "$RPM_TOPDIR/RPMS" -iname "*@LINPHONE_BUILDER_RPMBUILD_NAME@*.rpm" -exec fakeroot alien -d --keep-version --scripts {} +
find "$DEBS_TOPDIR" -iname "*@LINPHONE_BUILDER_RPMBUILD_NAME@*.deb" -exec sudo dpkg -i {} +
else
find "$RPM_TOPDIR/RPMS" -iname "*@LINPHONE_BUILDER_RPMBUILD_NAME@*.rpm" -exec sudo rpm -Uvh --replacefiles --replacepkgs --oldpackage {} +
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment