Public bug reported:
The program /usr/share/backupninja/dup in backupninja 0.9.7-5~lucid1
does not correctly test for versions of duplicity.
First, the code for parsing (lines 99-102) and comparing versions (lines 120,
126, 161, 187, 244, 264) only work
together correctly if the version number has the form x.y.z where x, y, and z
are numbers. The version of duplicity
in lucid, however, is 0.6.08b. The "b" in the subversion causes all of the
tests to fail.
Second, the version comparisons do not correctly compare the major/minor/sub
parts of versions correctly. For, example, the comparison on line 244 is
supposed to test whether the version is at least 0.4.4. It does this
with:
"if [ "$duplicity_major" -ge 0 -a "$duplicity_minor" -ge 4 -a
"$duplicity_sub" -ge 4 ]; then"
That comparison would be false for version 0.5.02, because 2 is not
greater than or equal to 4. The same problem occurs on line 264. The
comparisons 120, 161, 187 have the same incorrect logic, but since
they're are less-than comparisons, they actually can't fail for any
actual versions of duplicity.
** Affects: backupninja (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1004210
Title:
backupninja performs incorrect version tests on duplicity
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/backupninja/+bug/1004210/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs