]> git.donarmstrong.com Git - debhelper.git/commitdiff
r585: * dh_python: Honour -n flag. Closes: #192804
authorjoey <joey>
Sat, 10 May 2003 17:00:46 +0000 (17:00 +0000)
committerjoey <joey>
Sat, 10 May 2003 17:00:46 +0000 (17:00 +0000)
debian/changelog
dh_python

index df3e13af7370db5c1d19c786966b3038b04f506a..004586a1a8c19787502188c63692190143945bb4 100644 (file)
@@ -1,3 +1,9 @@
+debhelper (4.1.43) unstable; urgency=low
+
+  * dh_python: Honour -n flag. Closes: #192804
+
+ -- Joey Hess <joeyh@debian.org>  Sat, 10 May 2003 13:00:12 -0400
+
 debhelper (4.1.42) unstable; urgency=medium
 
   * Fix stupid typo in dh_movefiles. Closes: #188833
index 5618c52cc333032875e64958adc7689bb0b003f0..1ed4471427b6d1f22ba2d49a6b8f7140b1d2fce9 100755 (executable)
--- 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%");
        }
 }