Merge lp:~yurikoles/apt-btrfs-snapshot/1454306 into lp:apt-btrfs-snapshot

Proposed by yurikoles
Status: Merged
Merged at revision: 50
Proposed branch: lp:~yurikoles/apt-btrfs-snapshot/1454306
Merge into: lp:apt-btrfs-snapshot
Diff against target: 40 lines (+9/-2)
3 files modified
apt_btrfs_snapshot.py (+2/-1)
debian/changelog (+6/-0)
test/test_apt_btrfs_snapshot.py (+1/-1)
To merge this branch: bzr merge lp:~yurikoles/apt-btrfs-snapshot/1454306
Reviewer Review Type Date Requested Status
Michael Vogt Pending
Review via email: mp+259324@code.launchpad.net
To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'apt_btrfs_snapshot.py'
--- apt_btrfs_snapshot.py 2013-01-06 02:45:03 +0000
+++ apt_btrfs_snapshot.py 2015-05-17 05:41:15 +0000
@@ -119,7 +119,8 @@
119 by checking if the right fs layout is used etc119 by checking if the right fs layout is used etc
120 """120 """
121 # check for the helper binary121 # check for the helper binary
122 if not os.path.exists("/sbin/btrfs"):122 from distutils.spawn import find_executable
123 if not (find_executable("btrfs")):
123 return False124 return False
124 # check the fstab125 # check the fstab
125 entry = self._get_supported_btrfs_root_fstab_entry()126 entry = self._get_supported_btrfs_root_fstab_entry()
126127
=== modified file 'debian/changelog'
--- debian/changelog 2014-02-20 20:24:17 +0000
+++ debian/changelog 2015-05-17 05:41:15 +0000
@@ -1,3 +1,9 @@
1apt-btrfs-snapshot (3.4.4.3) UNRELEASED; urgency=medium
2
3 * Fix detection of btrfs binary on Debinan stretch (LP: #1454306)
4
5 -- Yurii Kolesnukov <yurikoles@hutba.org> Sun, 17 May 2015 08:03:57 +0300
6
1apt-btrfs-snapshot (0.3.4.2) trusty; urgency=medium7apt-btrfs-snapshot (0.3.4.2) trusty; urgency=medium
28
3 * Rewrite the python shebang path to /usr/bin/python3.9 * Rewrite the python shebang path to /usr/bin/python3.
410
=== modified file 'test/test_apt_btrfs_snapshot.py'
--- test/test_apt_btrfs_snapshot.py 2013-01-06 02:45:03 +0000
+++ test/test_apt_btrfs_snapshot.py 2015-05-17 05:41:15 +0000
@@ -26,7 +26,7 @@
2626
27 @mock.patch('os.path.exists')27 @mock.patch('os.path.exists')
28 def test_fstab_detect_snapshot(self, mock_commands):28 def test_fstab_detect_snapshot(self, mock_commands):
29 #Using python-mock 0.7 style, for precise compatibility29 # Using python-mock 0.7 style, for precise compatibility
30 mock_commands.side_effect = lambda f: f in ('/sbin/btrfs')30 mock_commands.side_effect = lambda f: f in ('/sbin/btrfs')
31 apt_btrfs = AptBtrfsSnapshot(31 apt_btrfs = AptBtrfsSnapshot(
32 fstab=os.path.join(self.testdir, "data", "fstab"))32 fstab=os.path.join(self.testdir, "data", "fstab"))

Subscribers

People subscribed via source and target branches

to all changes: