aboutsummaryrefslogtreecommitdiff
path: root/src/gjl
diff options
context:
space:
mode:
authorRalph Sennhauser <sera@gentoo.org>2013-02-10 15:30:45 +0000
committerRalph Sennhauser <sera@gentoo.org>2013-02-10 15:30:45 +0000
commit4ecad279f7f7e84ae2e104748c5b5ff64e3ab44f (patch)
treec1ac1d5aede1879893d4f1b9e83c7b4f77b9969a /src/gjl
parentMerge testsuite2 into testsuite and use new ROOT support in EnvironmentManager (diff)
downloadjava-config-4ecad279f7f7e84ae2e104748c5b5ff64e3ab44f.tar.gz
java-config-4ecad279f7f7e84ae2e104748c5b5ff64e3ab44f.tar.bz2
java-config-4ecad279f7f7e84ae2e104748c5b5ff64e3ab44f.zip
Make the scripts ROOT and EPREFIX aware
svn path=/projects/java-config-2/trunk/; revision=9191
Diffstat (limited to 'src/gjl')
-rwxr-xr-xsrc/gjl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gjl b/src/gjl
index 2feb30e..c561e30 100755
--- a/src/gjl
+++ b/src/gjl
@@ -48,7 +48,7 @@ def get_args(pkg):
envlp = os.getenv('LD_LIBRARY_PATH')
envjlp = os.getenv('JAVA_LIBRARY_PATH')
- newlibrary = '/lib:/usr/lib'
+ newlibrary = manager.eprefix + '/lib:'+ manager.eprefix + '/usr/lib'
if library:
newlibrary = ':'.join((library, newlibrary))
if envjlp:
@@ -102,7 +102,7 @@ if __name__ == '__main__':
global printer, manager, verman
printer = OutputFormatter(True, True)
- manager = EnvironmentManager()
+ manager = EnvironmentManager(os.getenv('ROOT', ''), os.getenv('EPREFIX', '@GENTOO_PORTAGE_EPREFIX@'))
verman = VersionManager(manager)
if not options.package: