1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00
freebsd-ports/net/reposado/files/patch-reposadocommon.py
Steve Wills 2e46b5a1c5 Reposado is a set of tools written in Python that replicate the
key functionality of Mac OS X Server's Software Update Service.
This enables you to host a local Apple Software Update Server
on any hardware and OS of your choice.

WWW: https://github.com/wdas/reposado

PR:		ports/169344
Submitted by:	Masaki TAGAWA <masaki@club.kyutech.ac.jp>
2012-06-25 01:23:26 +00:00

21 lines
843 B
Python

--- code/reposadolib/reposadocommon.py.org 2012-06-23 21:35:41.103519893 +0900
+++ code/reposadolib/reposadocommon.py 2012-06-23 21:43:57.289520798 +0900
@@ -58,7 +58,7 @@
def prefsFilePath():
'''Returns path to our preferences file.'''
- return os.path.join(get_main_dir(), 'preferences.plist')
+ return os.path.join('%%LOCALBASE%%/etc/', 'preferences.plist')
def pref(prefname):
@@ -71,7 +71,7 @@
'http://swscan.apple.com/content/catalogs/others/index-lion-snowleopard-leopard.merged-1.sucatalog',
'http://swscan.apple.com/content/catalogs/others/index-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog'],
'PreferredLocalizations': ['English', 'en'],
- 'CurlPath': '/usr/bin/curl'
+ 'CurlPath': '%%LOCALBASE%%/bin/curl'
}
try:
prefs = plistlib.readPlist(prefsFilePath())