mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-09 13:25:00 +00:00
Fixes for bug 12510.
This commit is contained in:
parent
c67d934ba7
commit
7e5e37e98e
@ -281,6 +281,18 @@ nsInstall::AddDirectory(const nsString& aRegName,
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsString qualifiedVersion = aVersion;
|
||||
if (qualifiedVersion == "")
|
||||
{
|
||||
// assume package version for overriden forms that don't take version info
|
||||
*aReturn = mVersionInfo->ToString(qualifiedVersion);
|
||||
}
|
||||
|
||||
if (*aReturn != SUCCESS)
|
||||
{
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsString subdirectory(aSubdir);
|
||||
|
||||
if (subdirectory != "")
|
||||
@ -328,7 +340,7 @@ nsInstall::AddDirectory(const nsString& aRegName,
|
||||
|
||||
ie = new nsInstallFile( this,
|
||||
fullRegName,
|
||||
aVersion,
|
||||
qualifiedVersion,
|
||||
newJarSource,
|
||||
aFolder,
|
||||
newSubDir,
|
||||
@ -417,6 +429,7 @@ nsInstall::AddSubcomponent(const nsString& aRegName,
|
||||
{
|
||||
nsInstallFile* ie;
|
||||
nsString qualifiedRegName;
|
||||
nsString qualifiedVersion;
|
||||
nsString tempTargetName;
|
||||
|
||||
PRInt32 errcode = nsInstall::SUCCESS;
|
||||
@ -444,6 +457,17 @@ nsInstall::AddSubcomponent(const nsString& aRegName,
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
qualifiedVersion = aVersion;
|
||||
if (qualifiedVersion == "")
|
||||
{
|
||||
// assume package version for overriden forms that don't take version info
|
||||
*aReturn = mVersionInfo->ToString(qualifiedVersion);
|
||||
}
|
||||
|
||||
if (*aReturn != SUCCESS)
|
||||
{
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
if ( aRegName == "" || aRegName == "null")
|
||||
{
|
||||
@ -463,7 +487,7 @@ nsInstall::AddSubcomponent(const nsString& aRegName,
|
||||
|
||||
ie = new nsInstallFile( this,
|
||||
qualifiedRegName,
|
||||
aVersion,
|
||||
qualifiedVersion,
|
||||
aJarSource,
|
||||
aFolder,
|
||||
tempTargetName,
|
||||
|
Loading…
Reference in New Issue
Block a user