ports/print/system-config-printer/files/patch-system-config-printer.py
2008-07-26 18:39:26 +00:00

29 lines
1.4 KiB
Python

--- system-config-printer.py.orig 2008-07-10 10:31:58.000000000 -0500
+++ system-config-printer.py 2008-07-26 13:26:03.412705522 -0500
@@ -3389,7 +3389,7 @@
# Try to get make and model via SNMP
if host:
os.environ["HOST"] = host
- cmd = '/usr/lib/cups/backend/snmp "${HOST}"'
+ cmd = '%%LOCALBASE%%/lib/cups/backend/snmp "${HOST}"'
debugprint (host + ": " + cmd)
stdout = None
try:
@@ -4693,7 +4693,7 @@
try:
# We want this to be in the current natural language,
# so we intentionally don't set LC_ALL=C here.
- p = subprocess.Popen (['/usr/bin/cupstestppd',
+ p = subprocess.Popen (['%%LOCALBASE%%/bin/cupstestppd',
'-rvv', filename],
stdin=file("/dev/null"),
stdout=subprocess.PIPE,
@@ -4984,7 +4984,7 @@
(pkgs, exes) = cupshelpers.missingPackagesAndExecutables (ppd)
if len (pkgs) > 0 or len (exes) > 0:
# We didn't find a necessary executable. Complain.
- install = "/usr/bin/system-install-packages"
+ install = "/usr/bin/true"
if len (pkgs) > 0 and os.access (install, os.X_OK):
pkg = pkgs[0]
install_text = ('<span weight="bold" size="larger">' +