The rebuild subcommand now executes the full pipeline: - build_registry() -> resolve() -> sched::run() - install::install() for each built package - service::install_service() for enabled services - boot::install_bootloader_config() for bootloader config - system::write_hostname() / write_timezone() for system activation Added --dry-run flag for report-only behavior (backward compat with test suite). Added -w flag for worker parallelism and --dry-run to help. Fixed .gitignore: 'kappa' -> '/kappa' (was matching include/kappa/, preventing header files from being tracked since initial commit). This commit also adds all previously-gitignored header files.
20 lines
491 B
C++
20 lines
491 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
namespace kappa::fetch {
|
|
|
|
struct RecipeResult {
|
|
bool ok = false;
|
|
std::string path; // path to the cached .kap file
|
|
std::string version; // version of the fetched package
|
|
bool updated = false; // true if the cache was updated (remote was newer)
|
|
std::string error;
|
|
};
|
|
|
|
RecipeResult fetch_recipe(const std::string& name,
|
|
const std::vector<std::string>& remotes);
|
|
|
|
} // namespace kappa::fetch
|