fails on comments in the line

Bug #872145 reported by Michael Vogt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apt-btrfs-snapshot (Ubuntu)
Fix Released
High
Unassigned

Bug Description

From https://bugs.edge.launchpad.net/ubuntu/+source/update-manager/+bug/806065/comments/13:

Michun (gerhard-kulzer) wrote on 2011-07-11: #13

I have the same kind of problem, the error message is however:

   TypeError: __init__() takes at most 7 arguments (8 given)

My fstab entries look like this:
UUID=c3329969-5a64-4ce1-905f-b42ac9649a84 / btrfs defaults,subvol=@ 0 1 #/dev/sda2

I've put a comment line behind each entry, which is interpreted as the 8th argument. If I remove the comment, all goes fine.

Since a line-end comment is allowed in fstab, maybe the python script should allow for it too, for sake of compatibility.

Gerhard

Michael Vogt (mvo)
Changed in apt-btrfs-snapshot (Ubuntu):
status: New → In Progress
importance: Undecided → High
Michael Vogt (mvo)
Changed in apt-btrfs-snapshot (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apt-btrfs-snapshot - 0.2.1

---------------
apt-btrfs-snapshot (0.2.1) oneiric; urgency=low

  * test/test_apt_btrfs_snapshot.py, test/data/fstab.bug872145:
    - fix crash in fstab parsing (LP: #872145)
  * apt_btrfs_snapshot.py:
    - test for /sbin/btrfs in snapshot_supported() as well (LP: #800908)
 -- Michael Vogt <email address hidden> Tue, 11 Oct 2011 10:17:41 +0200

Changed in apt-btrfs-snapshot (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
JKL (jkl102001) wrote :

This bug causes the Natty->Oneiric upgrade to fail, and so I think this patch needs to be backported to Natty as a high-priority update ASAP.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.