r4870 - trunk/src/target/opkg/libopkg
tick at docs.openmoko.org
tick at docs.openmoko.org
Sun Dec 14 12:10:57 CET 2008
Author: tick
Date: 2008-12-14 12:10:55 +0100 (Sun, 14 Dec 2008)
New Revision: 4870
Modified:
trunk/src/target/opkg/libopkg/opkg.c
Log:
opkg: rename opkg_clone to pkg_t_to_opkg_package_t.
It's more likely the functionality.
Modified: trunk/src/target/opkg/libopkg/opkg.c
===================================================================
--- trunk/src/target/opkg/libopkg/opkg.c 2008-12-14 11:10:43 UTC (rev 4869)
+++ trunk/src/target/opkg/libopkg/opkg.c 2008-12-14 11:10:55 UTC (rev 4870)
@@ -56,7 +56,7 @@
* Clone a pkg_t
*/
static opkg_package_t*
-pkg_clone (pkg_t *old)
+pkg_t_to_opkg_package_t (pkg_t *old)
{
opkg_package_t *new;
@@ -429,7 +429,7 @@
new->state_flag |= SF_USER;
pdata.action = OPKG_INSTALL;
- pdata.package = pkg_clone (new);
+ pdata.package = pkg_t_to_opkg_package_t (new);
progress (pdata, 0);
@@ -459,7 +459,7 @@
continue;
opkg_package_free (pdata.package);
- pdata.package = pkg_clone (pkg);
+ pdata.package = pkg_t_to_opkg_package_t (pkg);
pdata.action = OPKG_DOWNLOAD;
if (pkg->src == NULL)
@@ -511,7 +511,7 @@
/* 75% of "install" progress is for downloading */
opkg_package_free (pdata.package);
- pdata.package = pkg_clone (new);
+ pdata.package = pkg_t_to_opkg_package_t (new);
pdata.action = OPKG_INSTALL;
progress (pdata, 75);
@@ -575,7 +575,7 @@
}
pdata.action = OPKG_REMOVE;
- pdata.package = pkg_clone (pkg);
+ pdata.package = pkg_t_to_opkg_package_t (pkg);
progress (pdata, 0);
@@ -651,7 +651,7 @@
}
pdata.action = OPKG_INSTALL;
- pdata.package = pkg_clone (pkg);
+ pdata.package = pkg_t_to_opkg_package_t (pkg);
progress (pdata, 0);
err = opkg_upgrade_pkg (opkg->conf, pkg);
@@ -712,7 +712,7 @@
{
pkg = installed->pkgs[i];
- pdata.package = pkg_clone (pkg);
+ pdata.package = pkg_t_to_opkg_package_t (pkg);
progress (pdata, 99 * i / installed->len);
opkg_package_free (pdata.package);
@@ -927,7 +927,7 @@
pkg = all->pkgs[i];
- package = pkg_clone (pkg);
+ package = pkg_t_to_opkg_package_t (pkg);
callback (opkg, package, user_data);
opkg_package_free (package);
}
@@ -956,7 +956,7 @@
for (node=active_list_next(head, head); node; active_list_next(head,node)) {
old = list_entry(node, pkg_t, list);
new = pkg_hash_fetch_best_installation_candidate_by_name(opkg->conf, old->name, NULL);
- package = pkg_clone (new);
+ package = pkg_t_to_opkg_package_t (new);
callback (opkg, package, user_data);
opkg_package_free (package);
}
@@ -1011,7 +1011,7 @@
}
/* match found */
- package = pkg_clone (pkg);
+ package = pkg_t_to_opkg_package_t (pkg);
break;
}
More information about the commitlog
mailing list