Verified Commit d70df782 authored by Josef Schlehofer's avatar Josef Schlehofer 💬
Browse files

sentinel-i_agree_with_eula: fix indentation in prerm

Fixes:
root@turris:~# opkg remove sentinel-i_agree_with_eula
Removing package sentinel-i_agree_with_eula from root...
//usr/lib/opkg/info/sentinel-i_agree_with_eula.prerm: /usr/lib/opkg/info/sentinel-i_agree_with_eula.prerm-pkg: line 10: syntax error: unexpected end of file (expecting "fi")
You can force removal of packages with failed prerm scripts with the option:
	--force-remove
No packages removed.
Collected errors:
 * pkg_run_script: package "sentinel-i_agree_with_eula" prerm script returned status 2.
 * opkg_remove_pkg: not removing package "sentinel-i_agree_with_eula", prerm script failed
parent 8578cc98
......@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=sentinel-i_agree_with_eula
PKG_VERSION:=1
PKG_RELEASE:=3
PKG_RELEASE:=4
PKG_MAINTAINER:=CZ.NIC <packaging@turris.cz>
include $(INCLUDE_DIR)/package.mk
......@@ -32,12 +32,12 @@ endef
define Package/sentinel-i_agree_with_eula/prerm
#!/bin/sh
[ -n "$${IPKG_INSTROOT}" ] || {
if [ "$$(uci -q get sentinel.main.agreed_with_eula_version)" = $(PKG_VERSION) ]; then
uci -q batch <<EOF
delete sentinel.main.agreed_with_eula_version
commit sentinel.main
EOF
fi
if [ "$$(uci -q get sentinel.main.agreed_with_eula_version)" = "$(PKG_VERSION)" ]; then
uci -q batch <<-EOF
delete sentinel.main.agreed_with_eula_version
commit sentinel.main
EOF
fi
}
endef
......
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