Hi, Attached is the patch for python-central.
I've tested on 5 packages yet, and it seems to work correctly on packages with public modules. Though it seems that it completely fails with packages with private modules, (like smart-notifier) Also note that smart-notifier packaging is buggy as it should not ask for XS-P-V: 2.4 but >= 2.3 if not all. though that does not changes a damn thing, and would break other packages anyway. I don't know what we can do right now… -- ·O· Pierre Habouzit ··O [EMAIL PROTECTED] OOO http://www.madism.org
diff -Nru /tmp/fG5nniozYb/python-central-0.5.5/debian/changelog
/tmp/BEsnhUlqXr/python-central-0.5.5/debian/changelog
--- /tmp/fG5nniozYb/python-central-0.5.5/debian/changelog 2006-08-13
21:13:28.000000000 +0200
+++ /tmp/BEsnhUlqXr/python-central-0.5.5/debian/changelog 2006-10-02
14:28:12.000000000 +0200
@@ -1,3 +1,10 @@
+python-central (0.5.5-0.1) unstable; urgency=low
+
+ * Non-maintainer upload.
+ * Make python-central generate substvars and not rely on dh_python anymore.
+
+ -- Pierre Habouzit <[EMAIL PROTECTED]> Mon, 2 Oct 2006 14:28:08 +0200
+
python-central (0.5.5) unstable; urgency=low
* Update pycentral(1). Closes: #382157.
diff -Nru /tmp/fG5nniozYb/python-central-0.5.5/dh_pycentral
/tmp/BEsnhUlqXr/python-central-0.5.5/dh_pycentral
--- /tmp/fG5nniozYb/python-central-0.5.5/dh_pycentral 2006-06-18
05:29:24.000000000 +0200
+++ /tmp/BEsnhUlqXr/python-central-0.5.5/dh_pycentral 2006-10-02
14:26:38.000000000 +0200
@@ -52,8 +52,8 @@
foreach my $package (@{$dh{DOPACKAGES}}) {
my $tmp = tmpdir($package);
- # Move *.py files if needed
- doit("pycentral debhelper $package $tmp");
+ # Move *.py files if needed and generate dependencies
+ doit("pycentral debhelper --substvars=file --provides $package $tmp");
# Check that we have *.py files!
my $found = 0;
@@ -64,7 +64,6 @@
}, $tmp;
if ($found or -d "$tmp/usr/share/pycentral") {
- addsubstvar($package, "python:Depends", "python-central", ">=
0.5");
if (! $dh{NOSCRIPTS}) {
autoscript($package,"postinst","postinst-pycentral","s%#PACKAGE#%$package%");
autoscript($package,"prerm","prerm-pycentral","s%#PACKAGE#%$package%");
diff -Nru /tmp/fG5nniozYb/python-central-0.5.5/pycentral.py
/tmp/BEsnhUlqXr/python-central-0.5.5/pycentral.py
--- /tmp/fG5nniozYb/python-central-0.5.5/pycentral.py 2006-08-13
21:06:45.000000000 +0200
+++ /tmp/BEsnhUlqXr/python-central-0.5.5/pycentral.py 2006-10-02
14:31:26.000000000 +0200
@@ -384,7 +384,7 @@
if self.sversion_field == None:
raise PyCentralError, 'missing XS-Python-Version attribute'
if self.parse_versions:
- self.sversion_info = parse_versions(self.sversion_field)
+ self.sversion_info = pyversions.parse_versions(self.sversion_field)
else:
self.sversion_info = 'all' # dummy
self.has_private_extension = self.sversion_info == 'current_ext'
signature.asc
Description: Digital signature

