2009-07-13 04:14:28 -04:00
|
|
|
$OpenBSD: patch-fax_backend_hpfax_py,v 1.2 2009/07/13 08:14:28 ajacoutot Exp $
|
|
|
|
--- fax/backend/hpfax.py.orig Thu Jul 2 14:13:47 2009
|
|
|
|
+++ fax/backend/hpfax.py Thu Jul 2 14:14:02 2009
|
|
|
|
@@ -46,7 +46,7 @@ PIPE_BUF = 4096
|
2009-02-02 05:47:11 -05:00
|
|
|
|
2009-07-13 04:14:28 -04:00
|
|
|
job_id = 0
|
2009-02-02 05:47:11 -05:00
|
|
|
pid = os.getpid()
|
|
|
|
-config_file = '/etc/hp/hplip.conf'
|
|
|
|
+config_file = '${SYSCONFDIR}/hp/hplip.conf'
|
|
|
|
home_dir = ''
|
|
|
|
|
2009-07-13 04:14:28 -04:00
|
|
|
|
|
|
|
@@ -65,7 +65,7 @@ if os.path.exists(config_file):
|
|
|
|
bug("Error setting home directory: home= under [dirs] not found.")
|
2009-02-02 05:47:11 -05:00
|
|
|
sys.exit(1)
|
|
|
|
else:
|
2009-07-13 04:14:28 -04:00
|
|
|
- bug("Error setting home directory: /etc/hp/hplip.conf not found")
|
|
|
|
+ bug("Error setting home directory: ${SYSCONFDIR}/hp/hplip.conf not found")
|
2009-02-02 05:47:11 -05:00
|
|
|
sys.exit(1)
|
|
|
|
|
|
|
|
if not home_dir or not os.path.exists(home_dir):
|