Source: pkg-kde-tools
Source-Version: 0.15.28
Severity: normal

Hi!

Due to #895004, the semantics of Dpkg::Version in bool context will get
unbroken back to their original behavior. This was at the time and
it is now again an API break, but any other solution was deemed worse.
To avoid silent breakage the module now emits a perl warning so that
users can check and fix the broken code or quiesce the warning.

I've not checked the source, but given that this package provides
forked versions of the modules affected, that got fixed in dpkg, there
are at least two files where the new semantics are definitely going to
be wrong. The other uses would need to be analyzed. Or the code run to
get the warnings.

If the new behavior is fine (bool evaluation will be an alias to
is_valid()), then please add the following to those files until
dpkg 1.20.x:

  # Temporarily disable the warning until dpkg 1.20.x, as our usage is correct.
  no if $Dpkg::Version::VERSION ge '1.02',
     warnings => qw(Dpkg::Version::semantic_change::overload::bool);

otherwise, please change that to match the previous behavior of
as_string() if is_valid().

Thanks,
Guillem

Reply via email to