about summary refs log tree commit diff
path: root/src/nix-env/names.cc
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2004-02-09T11·59+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2004-02-09T11·59+0000
commit618aa69b015bd3ee1f6e19f3025e31fae0241826 (patch)
treed99d3908c5c26c722600b78071d2546dcd4cf20a /src/nix-env/names.cc
parent06a75a7e0c1813d90c205e654da43a32812ce5f4 (diff)
* In `--upgrade': added flags `--lt', `--leq', `--always' to specify
  whether we want to upgrade if the current version is less than the
  available version (default), when it is less or equal, or always.
  
* Added a flag `--dry-run' to show what would happen in `--install',
  `--uninstall', and `--upgrade', without actually performing the
  operation.

Diffstat (limited to 'src/nix-env/names.cc')
-rw-r--r--src/nix-env/names.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nix-env/names.cc b/src/nix-env/names.cc
index 252b07b91caa..c6054d6c1bef 100644
--- a/src/nix-env/names.cc
+++ b/src/nix-env/names.cc
@@ -1,6 +1,12 @@
 #include "names.hh"
 
 
+DrvName::DrvName()
+{
+    name = "";
+}
+
+
 /* Parse a derivation name.  The `name' part of a derivation name is
    everything up to but not including the first dash *not* followed by
    a letter.  The `version' part is the rest (excluding the separating