b2 backend uses deprecated "b2" package

Bug #1852848 reported by Tomas Krizek on 2019-11-16
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Duplicity
Medium
Unassigned

Bug Description

B2 moved the API from "b2" package into a separate "b2sdk" package. Using the old "b2" package is now deprecated. [1]

b2backend.py currently depends on both "b2" and "b2sdk", but use of "b2" is enforced and "b2sdk" isn't used at all.

The attached patch uses "b2sdk" as the primary dependency. If the new "b2sdk" module isn't available, it falls back to using the old "b2" in order to keep backward compatibility with older installations.

[1] - https://github.com/Backblaze/B2_Command_Line_Tool/blob/master/b2/_sdk_deprecation.py

Tomas Krizek (tkrizek) wrote :
Changed in duplicity:
importance: Undecided → Medium
milestone: none → 0.8.08
status: New → Fix Released
Changed in duplicity:
status: Fix Released → Fix Committed
Changed in duplicity:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers