File: postinst-pycentral

package info (click to toggle)
python-central 0.6.16%2Bnmu1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 280 kB
  • ctags: 234
  • sloc: python: 2,585; perl: 522; sh: 135; makefile: 58
file content (7 lines) | stat: -rw-r--r-- 248 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
rm -f /var/lib/pycentral/#PACKAGE#.pkgremove
if which pycentral >/dev/null 2>&1; then
	pycentral pkginstall #PACKAGE#
	if grep -qs '^#PACKAGE#$' /var/lib/pycentral/delayed-pkgs; then
		sed -i '/^#PACKAGE#$/d' /var/lib/pycentral/delayed-pkgs
	fi
fi