summaryrefslogtreecommitdiff
path: root/dh_python
diff options
context:
space:
mode:
authorjoey <joey>2003-05-10 17:00:46 +0000
committerjoey <joey>2003-05-10 17:00:46 +0000
commitc852d31331ae45515d690688320c7ef8b63cd68e (patch)
tree5490bc7e4ce0b51a7366efa4e317776e637f85c6 /dh_python
parentd3e154d83f3f5b00122bb7e96b5843801ef1bdbe (diff)
r585: * dh_python: Honour -n flag. Closes: #192804
Diffstat (limited to 'dh_python')
-rwxr-xr-xdh_python4
1 files changed, 2 insertions, 2 deletions
diff --git a/dh_python b/dh_python
index 5618c52..1ed4471 100755
--- a/dh_python
+++ b/dh_python
@@ -187,12 +187,12 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
}
$verdeps{$pyver} |= PY_MODULE if($deps & PY_MODULE);
}
- if ($verdeps{$pyver} & PY_MODULE) {
+ if ($verdeps{$pyver} & PY_MODULE && ! $dh{NOSCRIPTS}) {
autoscript($package,"postinst","postinst-python","s%#PYVER#%$pyver%;s%#DIRLIST#%$pydir%");
$need_prerm = 1;
}
}
- if ($need_prerm) {
+ if ($need_prerm && ! $dh{NOSCRIPTS}) {
autoscript($package,"prerm","prerm-python","s%#PACKAGE#%$package%");
}
}