From 4a9535e4ef48ba32fe3cc6b059d41b3f874ba907 Mon Sep 17 00:00:00 2001 From: Jean-Yves Lefort Date: Fri, 28 Oct 2005 09:36:43 +0000 Subject: 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 --- devel/bazaar-ng/files/patch-bzrlib_osutils.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 devel/bazaar-ng/files/patch-bzrlib_osutils.py (limited to 'devel/bazaar-ng/files/patch-bzrlib_osutils.py') 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 -- cgit v1.2.3