summaryrefslogtreecommitdiff
path: root/devel/bazaar-ng/files/patch-bzrlib_osutils.py
diff options
context:
space:
mode:
authorJean-Yves Lefort <jylefort@FreeBSD.org>2005-10-28 09:36:43 +0000
committerJean-Yves Lefort <jylefort@FreeBSD.org>2005-10-28 09:36:43 +0000
commit4a9535e4ef48ba32fe3cc6b059d41b3f874ba907 (patch)
tree60c4b988d7229bf6d81b5135bb6c3cf38f1ad4bc /devel/bazaar-ng/files/patch-bzrlib_osutils.py
parentOops, forgot to actually cvs add the patch in previous commit... (diff)
Add bazaar-ng.
Bazaar-NG is an implementation of GNU arch from Canonical written in Python. Arch is a version control system, which allows you to keep old versions of files and directories (usually source code), keep a log of who, when, and why changes occurred, etc., like SVN, CVS, or RCS. Arch is distributed, which gives it significant advantages and some disadvantages compared to SVN and CVS. The bzr implementation is the next Bazaar version from Canonical called Bazaar-NG. WWW: http://www.bazaar-ng.org/ PR: ports/87849 Submitted by: Ulf Lilleengen <lulf@kerneled.org>
Notes
Notes: svn path=/head/; revision=146559
Diffstat (limited to 'devel/bazaar-ng/files/patch-bzrlib_osutils.py')
-rw-r--r--devel/bazaar-ng/files/patch-bzrlib_osutils.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/devel/bazaar-ng/files/patch-bzrlib_osutils.py b/devel/bazaar-ng/files/patch-bzrlib_osutils.py
new file mode 100644
index 000000000000..89bf04814851
--- /dev/null
+++ b/devel/bazaar-ng/files/patch-bzrlib_osutils.py
@@ -0,0 +1,15 @@
+--- bzrlib/osutils.py.orig Fri Oct 28 11:30:13 2005
++++ bzrlib/osutils.py Fri Oct 28 11:30:38 2005
+@@ -448,10 +448,10 @@
+ except (NotImplementedError, AttributeError):
+ # If python doesn't have os.urandom, or it doesn't work,
+ # then try to first pull random data from /dev/urandom
+- if os.path.exists("/dev/urandom"):
++ try:
+ rand_bytes = file('/dev/urandom', 'rb').read
+ # Otherwise, use this hack as a last resort
+- else:
++ except:
+ # not well seeded, but better than nothing
+ def rand_bytes(n):
+ import random