Fix "nix ... --all"
When "--all" is used, we should not fill in a default installable.
This commit is contained in:
parent
7dedd3fa24
commit
cef8c169b1
2 changed files with 16 additions and 12 deletions
|
|
@ -78,7 +78,7 @@ struct InstallablesCommand : virtual Args, StoreCommand
|
|||
= import ...; bla = import ...; }’. */
|
||||
Value * getSourceExpr(EvalState & state);
|
||||
|
||||
std::vector<std::shared_ptr<Installable>> parseInstallables(ref<Store> store, Strings installables);
|
||||
std::vector<std::shared_ptr<Installable>> parseInstallables(ref<Store> store, Strings ss);
|
||||
|
||||
PathSet buildInstallables(ref<Store> store, bool dryRun);
|
||||
|
||||
|
|
@ -86,6 +86,8 @@ struct InstallablesCommand : virtual Args, StoreCommand
|
|||
|
||||
void prepare() override;
|
||||
|
||||
virtual bool useDefaultInstallables() { return true; }
|
||||
|
||||
private:
|
||||
|
||||
Strings _installables;
|
||||
|
|
@ -112,6 +114,8 @@ public:
|
|||
virtual void run(ref<Store> store, Paths storePaths) = 0;
|
||||
|
||||
void run(ref<Store> store) override;
|
||||
|
||||
bool useDefaultInstallables() override { return !all; }
|
||||
};
|
||||
|
||||
typedef std::map<std::string, ref<Command>> Commands;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue