mirror of
https://github.com/nix-community/comma.git
synced 2024-10-26 05:58:05 +03:00
This commit is contained in:
parent
7aeaea325c
commit
3d0310e14c
@ -15,7 +15,7 @@ pub fn update_database() {
|
||||
pub fn check_database_exists() {
|
||||
let database_file = get_database_file();
|
||||
if !database_file.exists() {
|
||||
println!("Warning: Nix-index database does not exist, try updating with `nix run 'nixpkgs#nix-index' --extra-experimental-features 'nix-command flakes'`.");
|
||||
println!("Warning: Nix-index database does not exist, either obtain a prebuilt database from https://github.com/Mic92/nix-index-database or try updating with `nix run 'nixpkgs#nix-index' --extra-experimental-features 'nix-command flakes'`.");
|
||||
}
|
||||
}
|
||||
|
||||
@ -24,7 +24,7 @@ pub fn check_database_updated() {
|
||||
let database_file = get_database_file();
|
||||
if is_database_old(database_file) {
|
||||
println!(
|
||||
"Warning: Nix-index database is older than 30 days, try updating with `nix run 'nixpkgs#nix-index' --extra-experimental-features 'nix-command flakes'`."
|
||||
"Warning: Nix-index database is older than 30 days, either obtain a prebuilt database from https://github.com/Mic92/nix-index-database or try updating with `nix run 'nixpkgs#nix-index' --extra-experimental-features 'nix-command flakes'`."
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -59,7 +59,7 @@ fn main() -> ExitCode {
|
||||
let args = Opt::parse();
|
||||
|
||||
if args.update {
|
||||
eprintln!("\"comma --update\" has been deprecated. use \"nix run 'nixpkgs#nix-index' --extra-experimental-features 'nix-command flakes'\"");
|
||||
eprintln!("\"comma --update\" has been deprecated. either obtain a prebuilt databse from https://github.com/Mic92/nix-index-database or use \"nix run 'nixpkgs#nix-index' --extra-experimental-features 'nix-command flakes'\"");
|
||||
index::update_database();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user