The current version in hardy-proposed queue does this in debian/bacula-director-pgsql.postinst:
- if dpkg --compare-versions lt 2.2.8-5ubuntu1
+ if dpkg --compare-versions "$2" lt 2.2.8-5ubuntu1
This still looks wrong for fresh installations. If this is an upgrade quirk, it must be "lt-nl". Should that be fixed with another upload, or will the code that is run there do the right thing for fresh installations as well?
The current version in hardy-proposed queue does this in debian/ bacula- director- pgsql.postinst:
- if dpkg --compare-versions lt 2.2.8-5ubuntu1
+ if dpkg --compare-versions "$2" lt 2.2.8-5ubuntu1
This still looks wrong for fresh installations. If this is an upgrade quirk, it must be "lt-nl". Should that be fixed with another upload, or will the code that is run there do the right thing for fresh installations as well?