--- opkg-0.0.20080924.orig/TODO +++ opkg-0.0.20080924/TODO @@ -106,3 +106,6 @@ 6) Cleanup the code 6.a) Start with all comments marked "XXX: CLEANUP" + + +{ use /var/lib/opkg instead /usr/lib/opkg } -- rzr@users.sf.net --- opkg-0.0.20080924.orig/libopkg/opkg_cmd.c +++ opkg-0.0.20080924/libopkg/opkg_cmd.c @@ -288,7 +288,7 @@ free (tmp_file_name); free (url); #else - opkg_message (conf, OPKG_NOTICE, "Signiture check for %s skipped " + opkg_message (conf, OPKG_NOTICE, "Signature check for %s skipped " "because GPG support was not enabled in this build\n", src->name); #endif free(list_file_name); @@ -380,7 +380,7 @@ perror (ctx->statedir); sprintf_alloc (&cmd, "rm -rf %s", ctx->statedir); - system (cmd); + err = system (cmd); free (cmd); free (ctx->statedir); --- opkg-0.0.20080924.orig/libopkg/pkg.c +++ opkg-0.0.20080924/libopkg/pkg.c @@ -1052,6 +1052,7 @@ void pkg_print_info(pkg_t *pkg, FILE *file) { + int t=0; char * buff; if (pkg == NULL) { return; @@ -1061,7 +1062,7 @@ if ( buff == NULL ) return; if (strlen(buff)>2){ - fwrite(buff, 1, strlen(buff), file); + t = fwrite(buff, 1, strlen(buff), file); //#~rzr:TODO } free(buff); } --- opkg-0.0.20080924.orig/libopkg/libopkg.c +++ opkg-0.0.20080924/libopkg/libopkg.c @@ -38,7 +38,7 @@ if ( level == OPKG_ERROR ){ push_error_list(&error_list, msg); } else - printf(msg); + printf("%s",msg); } return 0; } @@ -71,7 +71,7 @@ char* default_opkg_response_callback(char *question) { char *response = NULL; - printf(question); + printf("%s",question); fflush(stdout); do { response = (char *)file_read_line_alloc(stdin); --- opkg-0.0.20080924.orig/libopkg/opkg.c +++ opkg-0.0.20080924/libopkg/opkg.c @@ -873,7 +873,7 @@ free (list_file_name); free (url); #else - /* XXX: Note: Signiture check for %s skipped because GPG support was not + /* XXX: Note: Signature check for %s skipped because GPG support was not * enabled in this build */ #endif --- opkg-0.0.20080924.orig/CONTROL/control +++ opkg-0.0.20080924/CONTROL/control @@ -0,0 +1,10 @@ +Package: opkg +Priority: optional +Version: 0.0.20080924-0 +Architecture: any +Maintainer: Philippe Coval +Section: admin +Source: http://svn.openmoko.org/trunk/src/target/opkg/ +Depends: libcurl +Description: Package manager optimized for reduced system + OPkg is a fork of IPkg for openmoko system, inspired by dpkg from debian