Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=cfpm.git;a=commitdiff;h=336aa8f780493a4b161d294ba19e78fb6ee8c09a

commit 336aa8f780493a4b161d294ba19e78fb6ee8c09a
Author: James Buren <r...@frugalware.org>
Date:   Thu Jun 4 17:20:49 2009 -0500

pm.cc
* update

diff --git a/pm.cc b/pm.cc
index b8a1e81..fe807a5 100644
--- a/pm.cc
+++ b/pm.cc
@@ -1,5 +1,8 @@
+#include <iostream>
#include "pm.hh"

+using std::cout;
+using std::endl;
using namespace PM;

bool initialize(const std::string &root)
@@ -11,3 +14,14 @@ bool release()
{
return (!pacman_release()) ? true : false;
}
+
+// Initialize the defaults
+Shared::Shared()
+{
+       en = 0;
+}
+
+int Shared::status() { return en; }
+std::string Shared::statusString() { return pacman_strerror(en); }
+void Shared::printStatus() { if(en) cout << statusString() << endl; }
+void Shared::setStatus() { en = pm_errno; }
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to