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

commit 15edbbd05bdfd41005ff1dd1d763ac83a3446723
Author: Priyank <priy...@frugalware.org>
Date:   Thu Jun 4 15:40:22 2009 +0530

added a note about the use of PrintStatus in test program
* oh and forgot to release libpacman

diff --git a/main.m b/main.m
index 9ddf97a..fc04109 100644
--- a/main.m
+++ b/main.m
@@ -10,6 +10,11 @@ int main(void)

/* register the local package database */
db = [[Database new] Register:"local"];
+
+       /* we should print an error only when there _is_ an error
+         otherwise this would return "Unexpected Error". The correct way
+         is to check the return value of the functions before calling 
PrintStatus
+       */
//[db PrintStatus:stderr];

/* query the database */
@@ -26,5 +31,8 @@ int main(void)
[pkg free];
[db free];

+       /* release libpacman */
+       pacman_release();
+
return 0;
}
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to