repo rework: Re-add compatibility url field

* We saw 3rd party repos break as well oddly.
* Reintroduces the url field in a little bit cleaner
  way.
* Should solve "Failed to open repository file" errors
* Once everyone updates beyond hrev50723 this is
  no longer needed.
This commit is contained in:
Alexander von Gluck IV 2016-12-08 07:57:33 -06:00
parent 67e0301477
commit a2b2f4d642

View File

@ -35,7 +35,6 @@ const char* const BRepositoryInfo::kArchitectureField = "architecture";
const char* const BRepositoryInfo::kLicenseNameField = "licenseName";
const char* const BRepositoryInfo::kLicenseTextField = "licenseText";
BRepositoryInfo::BRepositoryInfo()
:
fInitStatus(B_NO_INIT),
@ -82,6 +81,11 @@ BRepositoryInfo::Archive(BMessage* data, bool deep) const
if (result != B_OK)
return result;
// XXX: This was removed but left in for repo
// compatibility. Please remove at a later date
// once 99% of people are running hrev50723 or later.
data->AddString("url", "STUB");
if ((result = data->AddString(kNameField, fName)) != B_OK)
return result;
if ((result = data->AddString(kVendorField, fVendor)) != B_OK)