diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2008-03-18 11:17:48 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2008-03-18 11:17:48 +0000 |
commit | f697e7be0b1ec98684d0b2d0ab1606dc1b7646a3 (patch) | |
tree | 6f441ce10722ce047179f6a32b1ccda9cbceff52 /extensions | |
parent | 9e2d0f6541756b79f6a4efbb406ea8f783e08947 (diff) |
INTEGRATION: CWS sb83 (1.7.36); FILE MERGED
2008/01/23 15:31:45 sb 1.7.36.1: #i84200# access files in various layers via explicit (OOO|BRAND)_BASE_DIR expansions
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/source/update/feed/updatefeed.cxx | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/extensions/source/update/feed/updatefeed.cxx b/extensions/source/update/feed/updatefeed.cxx index d2618e20af92..2b1e12a3043c 100644 --- a/extensions/source/update/feed/updatefeed.cxx +++ b/extensions/source/update/feed/updatefeed.cxx @@ -4,9 +4,9 @@ * * $RCSfile: updatefeed.cxx,v $ * - * $Revision: 1.7 $ + * $Revision: 1.8 $ * - * last change: $Author: ihi $ $Date: 2007-11-19 16:50:28 $ + * last change: $Author: vg $ $Date: 2008-03-18 12:17:48 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -560,14 +560,9 @@ UpdateInformationProvider::UpdateInformationProvider( m_xXPathAPI(xXPathAPI), m_aRequestHeaderList(2) { rtl::OUString aPath; - if( osl_getExecutableFile(&aPath.pData) == osl_Process_E_None ) + if( rtl::Bootstrap::get( UNISTRING("BRAND_BASE_DIR"), aPath ) ) { - sal_uInt32 lastIndex = aPath.lastIndexOf('/'); - if ( lastIndex > 0 ) - { - aPath = aPath.copy( 0, lastIndex+1 ); - aPath += UNISTRING( SAL_CONFIGFILE( "version" ) ); - } + aPath += UNISTRING( "/program/" SAL_CONFIGFILE( "version" ) ); rtl::Bootstrap aVersionFile(aPath); |