forked from lix-project/lix
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.
31 lines
444 B
C++
31 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 */
|