r3367 - in trunk/src/target/OM-2007.2/applications/openmoko-appmanager2: . src

thomas at sita.openmoko.org thomas at sita.openmoko.org
Wed Nov 7 16:34:09 CET 2007


Author: thomas
Date: 2007-11-07 16:34:07 +0100 (Wed, 07 Nov 2007)
New Revision: 3367

Modified:
   trunk/src/target/OM-2007.2/applications/openmoko-appmanager2/ChangeLog
   trunk/src/target/OM-2007.2/applications/openmoko-appmanager2/src/ipkgapi.c
   trunk/src/target/OM-2007.2/applications/openmoko-appmanager2/src/ipkgapi.h
Log:
* src/ipkgapi.c:
* src/ipkgapi.h:

Add ipkg_update_cmd() to update the package lists


Modified: trunk/src/target/OM-2007.2/applications/openmoko-appmanager2/ChangeLog
===================================================================
--- trunk/src/target/OM-2007.2/applications/openmoko-appmanager2/ChangeLog	2007-11-07 15:21:27 UTC (rev 3366)
+++ trunk/src/target/OM-2007.2/applications/openmoko-appmanager2/ChangeLog	2007-11-07 15:34:07 UTC (rev 3367)
@@ -1,5 +1,12 @@
 2007-11-07  Thomas Wood  <thomas at openedhand.com>
 
+	* src/ipkgapi.c:
+	* src/ipkgapi.h:
+
+	Add ipkg_update_cmd() to update the package lists
+
+2007-11-07  Thomas Wood  <thomas at openedhand.com>
+
 	* src/Makefile.am:
 	* src/am-progress-dialog.c:
 	* src/am-progress-dialog.h:

Modified: trunk/src/target/OM-2007.2/applications/openmoko-appmanager2/src/ipkgapi.c
===================================================================
--- trunk/src/target/OM-2007.2/applications/openmoko-appmanager2/src/ipkgapi.c	2007-11-07 15:21:27 UTC (rev 3366)
+++ trunk/src/target/OM-2007.2/applications/openmoko-appmanager2/src/ipkgapi.c	2007-11-07 15:34:07 UTC (rev 3367)
@@ -1092,4 +1092,17 @@
     return -1;
 }
 
-
+/*
+ * @brief Update the package list
+ *
+ */
+int ipkg_update_cmd ()
+{
+  args_t args;
+  
+  memset (&args, 0, sizeof (args));
+  
+  args_init (&args);
+  
+  return ipkg_lists_update (&args);
+}

Modified: trunk/src/target/OM-2007.2/applications/openmoko-appmanager2/src/ipkgapi.h
===================================================================
--- trunk/src/target/OM-2007.2/applications/openmoko-appmanager2/src/ipkgapi.h	2007-11-07 15:21:27 UTC (rev 3366)
+++ trunk/src/target/OM-2007.2/applications/openmoko-appmanager2/src/ipkgapi.h	2007-11-07 15:34:07 UTC (rev 3367)
@@ -88,6 +88,8 @@
 int ipkg_remove_cmd(char *pkg_name);
 int ipkg_search_cmd(char *pkg_name, PKG_LIST_HEAD *pkg_list_head);
 
+int ipkg_update_cmd ();
+
 void free_pkg_list(PKG_LIST_HEAD *head);
 void free_pkg_detail_info(PACKAGE_DETAIL_INFO *info);
 





More information about the commitlog mailing list