HaikuDepot : Handling for NULL Identity URLs on Repository Sources
Change-Id: I0f0094cf2ed38750dca4783b41f061977d833cea Reviewed-on: https://review.haiku-os.org/677 Reviewed-by: waddlesplash <waddlesplash@gmail.com>
This commit is contained in:
parent
419bc0a2ca
commit
4b30bf30b8
@ -121,9 +121,15 @@ DepotMatchingRepositoryListener::Handle(DumpExportRepository* repository)
|
||||
BString* URL = repositoryAndRepositorySource
|
||||
.repositorySource->RepoInfoUrl();
|
||||
|
||||
// to be simplified soon because there will no longer be a need to
|
||||
// check for the baseURL.
|
||||
|
||||
if (!baseURL->IsEmpty() || !URL->IsEmpty()) {
|
||||
fModel->ReplaceDepotByUrl(*URL, *baseURL, this,
|
||||
if ((baseURL != NULL && !baseURL->IsEmpty())
|
||||
|| (URL != NULL && !URL->IsEmpty())) {
|
||||
fModel->ReplaceDepotByUrl(
|
||||
URL == NULL ? BString() : *URL,
|
||||
baseURL == NULL ? BString() : *baseURL,
|
||||
this,
|
||||
&repositoryAndRepositorySource);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user