[DRE-commits] [ruby-uuid] 02/04: add a uid suffix to state_file

Praveen Arimbrathodiyil praveen at moszumanska.debian.org
Fri May 8 14:12:10 UTC 2015


This is an automated email from the git hooks/post-receive script.

praveen pushed a commit to branch master
in repository ruby-uuid.

commit 02b6fc8477685a26c46462467db8166d74581387
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date:   Mon Dec 1 01:29:36 2014 +0530

    add a uid suffix to state_file
---
 debian/patches/series                         |  1 +
 debian/patches/uid-suffix-to-state-file.patch | 13 +++++++++++++
 2 files changed, 14 insertions(+)

diff --git a/debian/patches/series b/debian/patches/series
index 70378b3..bd7b3c8 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
+uid-suffix-to-state-file.patch
 remove-bin-commands.patch
 version-fix.patch
 require-mocha-setup.patch
diff --git a/debian/patches/uid-suffix-to-state-file.patch b/debian/patches/uid-suffix-to-state-file.patch
new file mode 100644
index 0000000..02cf82e
--- /dev/null
+++ b/debian/patches/uid-suffix-to-state-file.patch
@@ -0,0 +1,13 @@
+Index: ruby-uuid/lib/uuid.rb
+===================================================================
+--- ruby-uuid.orig/lib/uuid.rb
++++ ruby-uuid/lib/uuid.rb
+@@ -173,7 +173,7 @@ class UUID
+       state_dir = Dir.tmpdir
+     end
+ 
+-    @state_file = File.join(state_dir, 'ruby-uuid')
++    @state_file = File.join(state_dir, 'ruby-uuid'+Process.uid.to_s)
+ 
+     if !File.writable?(state_dir) || (File.exists?(@state_file) && !File.writable?(@state_file)) then
+       @state_file = File.expand_path('.ruby-uuid', '~')

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-uuid.git



More information about the Pkg-ruby-extras-commits mailing list