From ddcc63b758f7e83a80d0928cb6737deb95f42c8d Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 5 Mar 2018 17:50:40 +0300 Subject: Add .manifest extension to repositories, packages and signature files --- load/load.cxx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'load') diff --git a/load/load.cxx b/load/load.cxx index 44cfe0e..85fb3ee 100644 --- a/load/load.cxx +++ b/load/load.cxx @@ -49,8 +49,8 @@ struct failed {}; static const char* help_info ( " info: run 'brep-load --help' for more information"); -static const path packages ("packages"); -static const path repositories ("repositories"); +static const path packages ("packages.manifest"); +static const path repositories ("repositories.manifest"); struct internal_repository { @@ -183,10 +183,10 @@ load_repositories (path p) } if (!file_exists (r.packages_path ())) - bad_line ("'packages' file does not exist"); + bad_line ("packages.manifest file does not exist"); if (!file_exists (r.repositories_path ())) - bad_line ("'repositories' file does not exist"); + bad_line ("repositories.manifest file does not exist"); } else if (strncmp (nv.c_str (), "fingerprint:", vp = 12) == 0) { @@ -302,8 +302,8 @@ repository_info (const options& lo, const string& rl, const cstrings& options) } } -// Load the repository packages from the 'packages' file and persist the -// repository. Should be called once per repository. +// Load the repository packages from the packages.manifest file and persist +// the repository. Should be called once per repository. // static void load_packages (const shared_ptr& rp, database& db) @@ -341,7 +341,7 @@ load_packages (const shared_ptr& rp, database& db) db.find (package_id (pm.name, pm.version))); // sha256sum should always be present if the package manifest comes from - // the 'packages' file. + // the packages.manifest file. // assert (pm.sha256sum); @@ -456,7 +456,7 @@ load_packages (const shared_ptr& rp, database& db) } // Load the repository manifest values, prerequsite repositories, and their -// complements state from the 'repositories' file. Update the repository +// complements state from the repositories.manifest file. Update the repository // persistent state to save changed members. Should be called once per // persisted internal repository. // -- cgit v1.1