debhelper will not override existing triggers with auto generated one.
To use the auto generated content in a hand-write trigger,
we should add #DEBHELPER# comment.
Related: linuxdeepin/developer-center#5561
Signed-off-by: black-desk <me@black-desk.cn>
- the package manager is not system-helper, correct that issue.
- the dbus service should be org.deepin.linglong.PackageManager.
Change-Id: Ib66fd2d20dcfcd0557184fb6812151ce17df90e7
/etc/os-release can be anything, might not have "VERSION_ID" in it.
So after sed, $VERSION can be empty string, or even a string with
space inside.
We should always quote variable when we using it.
Change-Id: I14046270ef446c9f878c66336150735c44038dd0