Use SYSCONFDIR.

This commit is contained in:
ajacoutot 2009-11-20 08:45:21 +00:00
parent 9c2eeffa38
commit 5e638812db
2 changed files with 14 additions and 2 deletions

View File

@ -1,10 +1,10 @@
# $OpenBSD: Makefile,v 1.8 2009/11/14 14:16:23 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.9 2009/11/20 08:45:21 ajacoutot Exp $
COMMENT= python library to access freedesktop.org standards
MODPY_EGG_VERSION= 0.18
DISTNAME= pyxdg-${MODPY_EGG_VERSION}
PKGNAME= py-xdg-${MODPY_EGG_VERSION}
PKGNAME= py-xdg-${MODPY_EGG_VERSION}p0
CATEGORIES= devel

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-xdg_Menu_py,v 1.5 2009/11/20 08:45:21 ajacoutot Exp $
--- xdg/Menu.py.orig Fri Nov 20 09:42:48 2009
+++ xdg/Menu.py Fri Nov 20 09:43:04 2009
@@ -503,7 +503,7 @@ def parse(filename=None):
filename = __getFileName(candidate)
if not filename:
- raise ParsingError('File not found', "/etc/xdg/menus/%s" % candidate)
+ raise ParsingError('File not found', "${SYSCONFDIR}/xdg/menus/%s" % candidate)
# check if it is a .menu file
if not os.path.splitext(filename)[1] == ".menu":