On Sun, Feb 25, 2007 at 06:04:40AM -0400, José Parrella wrote: > The problem is that pycentral tries to install the _config.py files, > which are symlinks to files in /etc/pyftpd and aren't configured yet > (that is, they're suffixed .dpkg-new)
However, I am unable to reproduce the bug - I tried with python-central and pyftpd purged, with old pyftpd conffies left over, etc... It manifested itself only in one case, when I experimented with symlinks in /etc/pyftpd/ and left over the symlinks and reinstalled the package. I have to admit am lost at this point. > > pycentral can be called with a special -x option which excludes modules. > The exclude pattern could be 'config.py' (since 'config' excludes real > files) However this approach didn't work for me (and dh_pycentral > doesn't support excluding, for some reason) > > If you change the direction of the symlinks, however, you can get an > installable package. That means you'll get real packages under > /usr/share, and symlinks in /etc. I'm not really sure if this is > Policy-compliant, but you should also state those files as conffiles. that is contrary to the Policy, section 10.7.2: "Any configuration files created or used by your package must reside in /etc" """If your package creates or uses configuration files outside of /etc, and it is not feasible to modify the package to use /etc directly, put the files in /etc and create symbolic links to those files from the location that the package requires""" > > The first approach (excluding the files from dh_pycentral) seemed the > right one, so if someone with more experience with Python than me could > check it, that'd be great. You'll find attached a brief debdiff. Thanks > for your time and work. > What if I made pyftpd pre-depend on python-central? I think it might help. -- ----------------------------------------------------------- | Radovan Garabík http://kassiopeia.juls.savba.sk/~garabik/ | | __..--^^^--..__ garabik @ kassiopeia.juls.savba.sk | ----------------------------------------------------------- Antivirus alert: file .signature infected by signature virus. Hi! I'm a signature virus! Copy me into your signature file to help me spread!