Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=cfpm.git;a=commitdiff;h=9f53a1c5f92157127b6e00a7b5dacc13dff1faf3
commit 9f53a1c5f92157127b6e00a7b5dacc13dff1faf3 Author: Priyank <priy...@frugalware.org> Date: Thu Jun 4 11:53:48 2009 +0530 Added Update message to the Database class diff --git a/pm.h b/pm.h index 82e7823..c1bc1b8 100644 --- a/pm.h +++ b/pm.h @@ -21,6 +21,7 @@ } - Register: (STR) s; - Unregister; +- Update: (int) f; - free; @end diff --git a/pm.m b/pm.m index c5475d6..227d88c 100644 --- a/pm.m +++ b/pm.m @@ -33,6 +33,12 @@ [self _set_status]; return self; } +- Update: (int) f +{ + if( pacman_db_update(f,db) == -1 ) + [self _set_status]; + return self; +} - free { [self Unregister]; _______________________________________________ Frugalware-git mailing list Frugalware-git@frugalware.org http://frugalware.org/mailman/listinfo/frugalware-git