openbsd-ports/devel/cvs2svn/patches/patch-cvs2svn
stsp 66093b1ea6 Show the basename of the program in help output, not the full path.
Same patch already applied upstream.
ok sthen@
2009-09-04 20:54:11 +00:00

20 lines
542 B
Plaintext

$OpenBSD: patch-cvs2svn,v 1.1 2009/09/04 20:54:22 stsp Exp $
--- cvs2svn.orig Sun Nov 23 08:10:57 2008
+++ cvs2svn Fri Sep 4 21:12:04 2009
@@ -23,12 +23,14 @@ if sys.hexversion < 0x02040000:
sys.stderr.write("ERROR: Python 2.4 or higher required.\n")
sys.exit(1)
+import os
+
from cvs2svn_lib.common import FatalException
from cvs2svn_lib.main import main
try:
- main(sys.argv[0], sys.argv[1:])
+ main(os.path.basename(sys.argv[0]), sys.argv[1:])
except FatalException, e:
sys.stderr.write(str(e) + '\n')
sys.exit(1)