printf("\tupdate Update list of available packages\n");
printf("\tupgrade Upgrade all installed packages to latest version\n");
printf("\tinstall <pkg> Download and install <pkg> (and dependencies)\n");
printf("\tupdate Update list of available packages\n");
printf("\tupgrade Upgrade all installed packages to latest version\n");
printf("\tinstall <pkg> Download and install <pkg> (and dependencies)\n");
- printf("\tinstall <file.ipk> Install package <file.ipk>\n");
+ printf("\tinstall <file.opk> Install package <file.opk>\n");
printf("\tconfigure [<pkg>] Configure unpacked packages\n");
printf("\tremove <pkg|regexp> Remove package <pkg|packages following regexp>\n");
printf("\tflag <flag> <pkg> ... Flag package(s) <pkg>\n");
printf("\tconfigure [<pkg>] Configure unpacked packages\n");
printf("\tremove <pkg|regexp> Remove package <pkg|packages following regexp>\n");
printf("\tflag <flag> <pkg> ... Flag package(s) <pkg>\n");
#ifndef OPKG_DEFINES_H
#define OPKG_DEFINES_H
#ifndef OPKG_DEFINES_H
#define OPKG_DEFINES_H
-#define OPKG_PKG_EXTENSION ".ipk"
+#define OPKG_PKG_EXTENSION ".opk"
+#define IPKG_PKG_EXTENSION ".ipk"
#define DPKG_PKG_EXTENSION ".deb"
#define OPKG_LEGAL_PKG_NAME_CHARS "abcdefghijklmnopqrstuvwxyz0123456789.+-"
#define DPKG_PKG_EXTENSION ".deb"
#define OPKG_LEGAL_PKG_NAME_CHARS "abcdefghijklmnopqrstuvwxyz0123456789.+-"
sprintf_alloc(&url, "%s/%s", pkg->src->value, pkg->filename);
/* XXX: BUG: The pkg->filename might be something like
sprintf_alloc(&url, "%s/%s", pkg->src->value, pkg->filename);
/* XXX: BUG: The pkg->filename might be something like
- "../../foo.ipk". While this is correct, and exactly what we
+ "../../foo.opk". While this is correct, and exactly what we
want to use to construct url above, here we actually need to
use just the filename part, without any directory. */
want to use to construct url above, here we actually need to
use just the filename part, without any directory. */
free(file_basec);
} else if (strcmp(&url[strlen(url) - 4], OPKG_PKG_EXTENSION) == 0
free(file_basec);
} else if (strcmp(&url[strlen(url) - 4], OPKG_PKG_EXTENSION) == 0
+ || strcmp(&url[strlen(url) - 4], IPKG_PKG_EXTENSION) == 0
|| strcmp(&url[strlen(url) - 4], DPKG_PKG_EXTENSION) == 0) {
err = pkg_init_from_file(pkg, url);
|| strcmp(&url[strlen(url) - 4], DPKG_PKG_EXTENSION) == 0) {
err = pkg_init_from_file(pkg, url);
* XXX: BUG easy for cworth
* 1) please point the call below to the correct current root destination
* 2) we need to resolve how to check the required space for a pending pkg,
* XXX: BUG easy for cworth
* 1) please point the call below to the correct current root destination
* 2) we need to resolve how to check the required space for a pending pkg,
- * my diddling with the .ipk file size below isn't going to cut it.
+ * my diddling with the .opk file size below isn't going to cut it.
* 3) return a proper error code instead of 1
*/
int comp_size, blocks_available;
* 3) return a proper error code instead of 1
*/
int comp_size, blocks_available;
can be found in th available file.
But, someone proposed the idea to make it possible to
can be found in th available file.
But, someone proposed the idea to make it possible to
- reconstruct a .ipk from an installed package, (ie. for beaming
+ reconstruct a .opk from an installed package, (ie. for beaming
from one handheld to another). So, maybe we actually want a few
more fields here, (depends, suggests, etc.), so that that would
be guaranteed to work even in the absence of more information
from one handheld to another). So, maybe we actually want a few
more fields here, (depends, suggests, etc.), so that that would
be guaranteed to work even in the absence of more information
-/* If the ipk has not a Provides line, we insert our false line */
+/* If the opk has not a Provides line, we insert our false line */
if ( pkg_false_provides==1)
{
pkg->provides_count = 1;
if ( pkg_false_provides==1)
{
pkg->provides_count = 1;