apt-btrfs-snapshot weekly cron always returns 1

Bug #1045006 reported by Arthur Ward
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
apt-btrfs-snapshot (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

After installing apt-btrfs-snapshot 0.2.1build1 on 12.04, I get the following email from anacron every week:

run-parts: /etc/cron.weekly/apt-btrfs-snapshot exited with return code 1

After digging through the apt-btrfs-snapshot code, it looks to me like there is a bug in /usr/share/pyshared/apt_btrfs_snapshot.py. "clean_btrfs_root_snapshots_older_than" does not return a value, which /usr/bin/apt-btrfs-snapshot.py treats as an error condition. I think the function should be checking the result of delete_snapshot at each iteration. The fix I made to my system is attached.

Tags: patch
Revision history for this message
Arthur Ward (arthur-ward) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "The fix I applied to my system." of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

tags: added: patch
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in apt-btrfs-snapshot (Ubuntu):
status: New → Confirmed
Revision history for this message
Dark Dragon (darkdragon-001) wrote :
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.