Show the basename of the program in help output, not the full path.
Same patch already applied upstream. ok sthen@
This commit is contained in:
parent
b6a02eab6a
commit
66093b1ea6
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2009/08/22 11:46:24 sthen Exp $
|
||||
# $OpenBSD: Makefile,v 1.2 2009/09/04 20:54:11 stsp Exp $
|
||||
|
||||
COMMENT= migrate repositories from CVS to Subversion/GIT
|
||||
|
||||
@ -6,6 +6,7 @@ COMMENT= migrate repositories from CVS to Subversion/GIT
|
||||
# otherwise you probably get the old files, not 404.
|
||||
MODPY_EGG_VERSION= 2.2.0
|
||||
DISTNAME= cvs2svn-${MODPY_EGG_VERSION}
|
||||
PKGNAME= ${DISTNAME}p0
|
||||
MASTER_SITES= ${HOMEPAGE}files/documents/1462/44372/
|
||||
|
||||
CATEGORIES= devel
|
||||
|
19
devel/cvs2svn/patches/patch-cvs2svn
Normal file
19
devel/cvs2svn/patches/patch-cvs2svn
Normal file
@ -0,0 +1,19 @@
|
||||
$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)
|
Loading…
Reference in New Issue
Block a user