mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-14 02:06:16 +02:00
618aa69b01
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.
30 lines
444 B
C++
30 lines
444 B
C++
#ifndef __NAMES_H
|
|
#define __NAMES_H
|
|
|
|
#include <string>
|
|
#include <list>
|
|
|
|
#include "util.hh"
|
|
|
|
|
|
struct DrvName
|
|
{
|
|
string fullName;
|
|
string name;
|
|
string version;
|
|
unsigned int hits;
|
|
|
|
DrvName();
|
|
DrvName(const string & s);
|
|
bool matches(DrvName & n);
|
|
};
|
|
|
|
|
|
typedef list<DrvName> DrvNames;
|
|
|
|
|
|
int compareVersions(const string & v1, const string & v2);
|
|
DrvNames drvNamesFromArgs(const Strings & opArgs);
|
|
|
|
|
|
#endif /* !__NAMES_H */
|