]> cygwin.com Git - cygwin-apps/setup.git/commitdiff
Add a PackageSpecification() constructor which takes a package name and version
authorJon Turney <jon.turney@dronecode.org.uk>
Fri, 26 May 2017 13:30:40 +0000 (14:30 +0100)
committerJon Turney <jon.turney@dronecode.org.uk>
Sun, 28 Jan 2018 15:10:43 +0000 (15:10 +0000)
PackageSpecification.cc
PackageSpecification.h

index a2a3e486fa1ff271f2930d1841705ab6b15ed779..b58ad8048644a27b02fb1b2e11e94817dfd35bf0 100644 (file)
@@ -22,6 +22,12 @@ PackageSpecification::PackageSpecification (const std::string& packageName)
 {
 }
 
+PackageSpecification::PackageSpecification (const std::string& packageName,
+                                            const std::string& packageVersion)
+  : _packageName (packageName) , _operator (Equals), _version (packageVersion)
+{
+}
+
 const std::string&
 PackageSpecification::packageName () const
 {
index 0706ec8d4736dc16b223674ae672699313b10f9c..b8814948752813e6326b3a1bafa0a4e34aa01892 100644 (file)
@@ -29,6 +29,8 @@ class PackageSpecification
 public:
   PackageSpecification () : _packageName (), _operator(Equals) {}
   PackageSpecification (const std::string& packageName);
+  PackageSpecification (const std::string& packageName,
+                        const std::string &packageVersion);
   ~PackageSpecification () {}
 
   enum _operators
This page took 0.033569 seconds and 5 git commands to generate.