[DRE-commits] [ruby-sys-filesystem] 01/02: use /proc/mounts
Praveen Arimbrathodiyil
praveen at moszumanska.debian.org
Sat Sep 17 14:55:59 UTC 2016
This is an automated email from the git hooks/post-receive script.
praveen pushed a commit to branch master
in repository ruby-sys-filesystem.
commit b97cfec6f445024d628325ded0028d75b0fc2a70
Author: Pirate Praveen <praveen at debian.org>
Date: Sat Sep 17 20:00:33 2016 +0530
use /proc/mounts
---
debian/changelog | 6 ++++++
debian/patches/series | 1 +
debian/patches/use-proc-mounts.patch | 11 +++++++++++
3 files changed, 18 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index ac188d0..03f37a1 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+ruby-sys-filesystem (1.1.7-2) UNRELEASED; urgency=medium
+
+ * Use /proc/mounts as fallback
+
+ -- Pirate Praveen <praveen at debian.org> Sat, 17 Sep 2016 19:59:52 +0530
+
ruby-sys-filesystem (1.1.7-1) unstable; urgency=medium
* Initial release (Closes: #834341)
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..ec81109
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+use-proc-mounts.patch
diff --git a/debian/patches/use-proc-mounts.patch b/debian/patches/use-proc-mounts.patch
new file mode 100644
index 0000000..76f74aa
--- /dev/null
+++ b/debian/patches/use-proc-mounts.patch
@@ -0,0 +1,11 @@
+--- a/lib/sys/unix/sys/filesystem.rb
++++ b/lib/sys/unix/sys/filesystem.rb
+@@ -42,6 +42,8 @@
+ MOUNT_FILE = '/etc/mtab'
+ elsif File.exist?('/etc/mnttab')
+ MOUNT_FILE = '/etc/mnttab'
++ elsif File.exist?('/proc/mounts')
++ MOUNT_FILE = '/proc/mounts'
+ else
+ MOUNT_FILE = 'getmntinfo'
+ end
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-sys-filesystem.git
More information about the Pkg-ruby-extras-commits
mailing list