ticktock35 [Mon, 9 Mar 2009 04:39:22 +0000 (04:39 +0000)]
because of the file_hash_set_file_owner may break the file list of pkgs
it should be iterated more carefully.
Dealing with
http://code.google.com/p/opkg/issues/detail?id=9
git-svn-id: http://opkg.googlecode.com/svn/trunk@204
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Wed, 4 Mar 2009 00:59:35 +0000 (00:59 +0000)]
Thanks to Krzysztof Kotlenga <pocek@users.sf.net>:
Frans Meulenbroeks wrote:
> Anyway, appending the 0 byte is no good as tar_entry->name[100] is
> already out of bounds.
http://tiny.cc/964UD looks good enough. It's interesting that we have
to trace bugs already fixed upstream years ago.
http://lists.linuxtogo.org/pipermail/openembedded-devel/2009-March/008510.html
git-svn-id: http://opkg.googlecode.com/svn/trunk@203
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Sat, 28 Feb 2009 06:12:06 +0000 (06:12 +0000)]
thanks to Koen, a memory leak were fond and fixed here.
When the flag is force-overwrite and replace files.
opkg will not free the root_filename well.
git-svn-id: http://opkg.googlecode.com/svn/trunk@202
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Thu, 12 Feb 2009 13:27:50 +0000 (13:27 +0000)]
Thanks to
Frans Meulenbroeks
http://groups.google.com/group/opkg-devel/browse_thread/thread/
23c3557277de0f2e
If a file name in a tar archive is exactly 100 bytes long the name
field is completely filled and there is no terminating null byte;
so extraction of the file will yield a name that is extended with the
mode (e.g. 000644).
The attached patch cures it although there might be better solutions.
The problem is also in busybox tar and reported there too.
Frans.
git-svn-id: http://opkg.googlecode.com/svn/trunk@201
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Tue, 3 Feb 2009 12:04:38 +0000 (12:04 +0000)]
reduce a meory leak
git-svn-id: http://opkg.googlecode.com/svn/trunk@200
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Sun, 1 Feb 2009 14:12:41 +0000 (14:12 +0000)]
Initial the 'err' valaible in opkg_install_by_name , or it may be used without
initialize.
git-svn-id: http://opkg.googlecode.com/svn/trunk@199
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Sat, 24 Jan 2009 08:51:21 +0000 (08:51 +0000)]
Thanks to: Per Hansen <spamhans@yahoo.de>
http://groups.google.com/group/opkg-devel/browse_thread/thread/
20ca40ec1f6cec02
opkg install *.ipk
An error ocurred, return value: -50512.
BTW.
This error message is not very helpful!
git-svn-id: http://opkg.googlecode.com/svn/trunk@198
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 19 Jan 2009 18:21:08 +0000 (18:21 +0000)]
fix a buffer overflow bug that cause
http://code.google.com/p/opkg/issues/detail?id=3
git-svn-id: http://opkg.googlecode.com/svn/trunk@197
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Fri, 9 Jan 2009 13:05:05 +0000 (13:05 +0000)]
Making the status_file singleton, every package is using the same file,
and it should be handled only once.
Let status_file works (make the dest->status_file obsolete)
git-svn-id: http://opkg.googlecode.com/svn/trunk@196
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Sun, 28 Dec 2008 08:06:35 +0000 (08:06 +0000)]
opkg the config file dir to that one actually works
git-svn-id: http://opkg.googlecode.com/svn/trunk@194
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Sun, 28 Dec 2008 07:53:44 +0000 (07:53 +0000)]
adding check_signature config
default if off
you can turn that on via adding one line in /etc/opkg/opkg.conf file
+ option check_signature 1
git-svn-id: http://opkg.googlecode.com/svn/trunk@193
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Sat, 27 Dec 2008 18:52:24 +0000 (18:52 +0000)]
revert R190, keep R191
Waiting for the patch fixing bugs.
git-svn-id: http://opkg.googlecode.com/svn/trunk@192
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Sat, 27 Dec 2008 17:26:46 +0000 (17:26 +0000)]
adding --enable-curl configuation to configure.ac
Basically it apply opkg_wget.patch from OE but I add something to the configure.ac
http://cgit.openembedded.net/cgit.cgi?url=openembedded/tree/packages/opkg/files/opkg_wget.patch&id=
1bbdc74a5384c81d0bdeb96f6acdfef91430d35d
Thanks Mike Westerhof <mwester@dls.net>
git-svn-id: http://opkg.googlecode.com/svn/trunk@191
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Sat, 27 Dec 2008 16:52:36 +0000 (16:52 +0000)]
Thanks for Mike Westerhof <mwester@dls.net>
----------
This patchset updates the libbb stuff to use a vfork() version of
gz_open, called gzvopen. This is done because a standard fork will
duplicate the entire address space. This will invoke the OOM
(out of memory) killer on small-memory machines, because most often
by the time we unzip any package, we've read the entire package
database into memory already. By using vfork() and immediatly
execing the external gunzip utility, we avoid the need to clone the
entire address space.
Yes, this is actually **LESS** efficient than the original way!
But there is no way to (currently) dodge the OOM killer on a
per-process basis, so the alternatives are to either change the
OOM killer behavior system-wide, or to use this workaround.
Mike Westerhof, Dec 2008
git-svn-id: http://opkg.googlecode.com/svn/trunk@190
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Fri, 26 Dec 2008 07:07:21 +0000 (07:07 +0000)]
when configure with --disable-gpg, no message complain about the signature stuff.
git-svn-id: http://opkg.googlecode.com/svn/trunk@189
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Fri, 19 Dec 2008 22:53:28 +0000 (22:53 +0000)]
remove the active_list_test target
git-svn-id: http://opkg.googlecode.com/svn/trunk@188
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Fri, 19 Dec 2008 22:48:57 +0000 (22:48 +0000)]
Turn off the active_list_test app by default. Use it when we need it.
git-svn-id: http://opkg.googlecode.com/svn/trunk@187
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Fri, 19 Dec 2008 10:43:55 +0000 (10:43 +0000)]
using hash_table reduce an O(n^2) algorithm to O(n)
in strcmp
analysis from gcov:
Before:
507: 1386: old_files = pkg_get_installed_files(old_pkg);
507: 1387: new_files = pkg_get_installed_files(pkg);
-: 1388:
5466: 1389: for (of = str_list_first(old_files); of; of = str_list_next
-: 1390: pkg_t *owner;
-: 1391: char *old, *new;
4959: 1392: old = (char *)of->data;
2963021: 1393: for (nf = str_list_first(new_files); nf; nf = str_list
2961464: 1394: new = nf->data;
2961464: 1395: if (strcmp(old, new) == 0) {
3402: 1396: niter = &nf;
3402: 1397: nf=str_list_next(new_files, nf);
3402: 1398: str_list_remove(new_files, niter);
3402: 1399: free(new);
3402: 1400: goto NOT_OBSOLETE;
-: 1401: }
After:
507: 1393: new_files_table.entries = NULL;
507: 1394: hash_table_init("new_files" , &new_files_table, 20);
8897: 1395: for (nf = str_list_first(new_files); nf; nf = str_list_next
8390: 1396: if (nf && nf->data)
8390: 1397: hash_table_insert(&new_files_table, nf->data, nf->da
-: 1398: }
-: 1399:
5466: 1400: for (of = str_list_first(old_files); of; of = str_list_next
-: 1401: pkg_t *owner;
-: 1402: char *old, *new;
4959: 1403: old = (char *)of->data;
4959: 1404: new = (char *) hash_table_get (&new_files_table, old);
4959: 1405: if (new)
4894: 1406: continue;
git-svn-id: http://opkg.googlecode.com/svn/trunk@186
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Thu, 18 Dec 2008 17:47:41 +0000 (17:47 +0000)]
using list_head to handle the list
git-svn-id: http://opkg.googlecode.com/svn/trunk@185
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Wed, 17 Dec 2008 00:27:16 +0000 (00:27 +0000)]
only add pkg_vec_sort when needed
git-svn-id: http://opkg.googlecode.com/svn/trunk@184
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Wed, 17 Dec 2008 00:27:04 +0000 (00:27 +0000)]
move pkg_compare_name to pkg_vec and remove qsort in hash_get
git-svn-id: http://opkg.googlecode.com/svn/trunk@183
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Wed, 17 Dec 2008 00:26:45 +0000 (00:26 +0000)]
remove some unnecessary code from pkg_vec_insert
git-svn-id: http://opkg.googlecode.com/svn/trunk@182
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Wed, 17 Dec 2008 00:26:32 +0000 (00:26 +0000)]
introduce the active_list for searching.
introduce the active_list_sort
git-svn-id: http://opkg.googlecode.com/svn/trunk@181
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:34:38 +0000 (05:34 +0000)]
opkg: rename opkg_clone to pkg_t_to_opkg_package_t.
It's more likely the functionality.
git-svn-id: http://opkg.googlecode.com/svn/trunk@180
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:34:28 +0000 (05:34 +0000)]
opkg: Update TODO and remark that pkg_hash_fetch_best_installation_candidate
is very slow and been called very often. This has a huge improve space.
git-svn-id: http://opkg.googlecode.com/svn/trunk@179
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:34:16 +0000 (05:34 +0000)]
opkg: using active_list to list all the installed pkgs.
adding function that allows node move from one list to another
git-svn-id: http://opkg.googlecode.com/svn/trunk@178
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:34:03 +0000 (05:34 +0000)]
opkg: using active list to list upgradeable pkgs
git-svn-id: http://opkg.googlecode.com/svn/trunk@177
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:33:45 +0000 (05:33 +0000)]
opkg: trivial adding some comments
git-svn-id: http://opkg.googlecode.com/svn/trunk@176
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:33:34 +0000 (05:33 +0000)]
opkg: update TODO
git-svn-id: http://opkg.googlecode.com/svn/trunk@175
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:33:27 +0000 (05:33 +0000)]
opkg: trivial rename old_pkg_to_new to pkg_clone as a more readable name.
git-svn-id: http://opkg.googlecode.com/svn/trunk@174
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:33:16 +0000 (05:33 +0000)]
opkg: introduce active list into pkg_t
git-svn-id: http://opkg.googlecode.com/svn/trunk@173
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:33:03 +0000 (05:33 +0000)]
opkg: update the the author infomation
Since my e-mail account had been deleted for some reason,
and I cannot get mail from that account, update a vaild one.
So that I can keep in touch with people who want to help opkg. :)
git-svn-id: http://opkg.googlecode.com/svn/trunk@172
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:32:57 +0000 (05:32 +0000)]
opkg: reinitial node of active_list after clear
git-svn-id: http://opkg.googlecode.com/svn/trunk@171
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:32:47 +0000 (05:32 +0000)]
opkg: implment active_list_clear()
git-svn-id: http://opkg.googlecode.com/svn/trunk@170
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:32:34 +0000 (05:32 +0000)]
opkg: implement active_list_prev and test cases.
git-svn-id: http://opkg.googlecode.com/svn/trunk@169
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:32:19 +0000 (05:32 +0000)]
opkg: refactory active_list_next remove unnecessary field.
git-svn-id: http://opkg.googlecode.com/svn/trunk@168
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:32:04 +0000 (05:32 +0000)]
opkg: active_list tests
git-svn-id: http://opkg.googlecode.com/svn/trunk@167
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:31:50 +0000 (05:31 +0000)]
opkg: introduce the protype of active_list
This can be used for upgrade path
git-svn-id: http://opkg.googlecode.com/svn/trunk@166
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:31:34 +0000 (05:31 +0000)]
opkg: fixing some trivial defects while reviewing code
git-svn-id: http://opkg.googlecode.com/svn/trunk@165
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:31:22 +0000 (05:31 +0000)]
adding list_upgradable
opkg: refactory the upgradable list
git-svn-id: http://opkg.googlecode.com/svn/trunk@164
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:31:04 +0000 (05:31 +0000)]
opkg: using calloc to replace the malloc, initialize varaiable
git-svn-id: http://opkg.googlecode.com/svn/trunk@163
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:30:54 +0000 (05:30 +0000)]
opkg: trivial just indent
git-svn-id: http://opkg.googlecode.com/svn/trunk@162
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:30:44 +0000 (05:30 +0000)]
opkg: remove the free_error_list wrong usage bug
Thanks for manitu
git-svn-id: http://opkg.googlecode.com/svn/trunk@161
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:30:29 +0000 (05:30 +0000)]
opkg: adding the hash_table_remove API, not using yet.
Just complete the API for future usage.
Clean all the entry at initial time. This reduces planty of unnecessary check.
In order to prevent this kind of bug, using calloc to replace most malloc
git-svn-id: http://opkg.googlecode.com/svn/trunk@160
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:29:50 +0000 (05:29 +0000)]
opkg: making hash_table_insert works as real hash_table.
solving the update_file_ownership misbehaviour issue, and redundent installed files issue.
git-svn-id: http://opkg.googlecode.com/svn/trunk@159
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:29:40 +0000 (05:29 +0000)]
opkg: mark the pkg SF as !SF_FILELIST_CHANGED after write back.
git-svn-id: http://opkg.googlecode.com/svn/trunk@158
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:29:30 +0000 (05:29 +0000)]
opkg: trivial, clean up obsolete code, and some typo
git-svn-id: http://opkg.googlecode.com/svn/trunk@157
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:29:12 +0000 (05:29 +0000)]
opkg: only cache the packages
thanks Werner.
git-svn-id: http://opkg.googlecode.com/svn/trunk@156
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:29:02 +0000 (05:29 +0000)]
opkg: add a simple way to pass a path environment for pre/post scription execution when in offline mode.
Thanks for Christopher Hall <hsw@openmoko.com>
git-svn-id: http://opkg.googlecode.com/svn/trunk@155
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:28:44 +0000 (05:28 +0000)]
opkg: adding cache support
opkg-cl --cache <cache_directory>
Thank for Werner
git-svn-id: http://opkg.googlecode.com/svn/trunk@154
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:28:25 +0000 (05:28 +0000)]
Clean up some out of date TODOs
Keep some still valid, or what I am not sure about.
git-svn-id: http://opkg.googlecode.com/svn/trunk@153
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:28:19 +0000 (05:28 +0000)]
opkg: remove ChangeLog, add AUTHORS, remove maintainer-mode
git-svn-id: http://opkg.googlecode.com/svn/trunk@152
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:28:08 +0000 (05:28 +0000)]
opkg: attached patch fixes build failures with gcc 4.3.2. patch by Enrico Scholz -- thanks!
git-svn-id: http://opkg.googlecode.com/svn/trunk@151
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:27:58 +0000 (05:27 +0000)]
[opkg] fixing typo & incompatible part to gcc 4.3.2
git-svn-id: http://opkg.googlecode.com/svn/trunk@150
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:27:43 +0000 (05:27 +0000)]
Patch from rwhitby to follow 302 redirects properly.
git-svn-id: http://opkg.googlecode.com/svn/trunk@149
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:27:33 +0000 (05:27 +0000)]
[opkg] trivial, remove unused variable res
git-svn-id: http://opkg.googlecode.com/svn/trunk@148
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:27:24 +0000 (05:27 +0000)]
[opkg] Remove the orphan packages while upgrading
git-svn-id: http://opkg.googlecode.com/svn/trunk@147
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:27:15 +0000 (05:27 +0000)]
[opkg] fix opkg crashes if PATH is unset
Thanks for chgros
git-svn-id: http://opkg.googlecode.com/svn/trunk@146
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:27:05 +0000 (05:27 +0000)]
remove build error on gcc 3.4
Thanks for jserv found and fix this.
git-svn-id: http://opkg.googlecode.com/svn/trunk@145
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:26:51 +0000 (05:26 +0000)]
opkg: fix the crashing issue.
It's a hanging pointer.
Using installed_files without get and free
git-svn-id: http://opkg.googlecode.com/svn/trunk@144
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:26:39 +0000 (05:26 +0000)]
opkg: mark one line that cause crash.
But it will makes the system failed in reference count.
git-svn-id: http://opkg.googlecode.com/svn/trunk@143
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:26:29 +0000 (05:26 +0000)]
opkg: remove a serious memory leak
when searching every package opkg will clone the package but never released.
git-svn-id: http://opkg.googlecode.com/svn/trunk@142
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:26:19 +0000 (05:26 +0000)]
opkg: make .opk as the default opkg file extension
git-svn-id: http://opkg.googlecode.com/svn/trunk@141
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:26:01 +0000 (05:26 +0000)]
opkg: balance the installed_files reference count
reducing some memory leaks
git-svn-id: http://opkg.googlecode.com/svn/trunk@140
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:25:48 +0000 (05:25 +0000)]
opkg: fix some memory leak and double free issues.
git-svn-id: http://opkg.googlecode.com/svn/trunk@139
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:25:37 +0000 (05:25 +0000)]
opkg: Fix a bug that ap may undefined.
by Alexandros Kostopoulos <akostop@inaccessnetworks.com>
git-svn-id: http://opkg.googlecode.com/svn/trunk@138
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:25:26 +0000 (05:25 +0000)]
opkg: write the status change after actually updated.
git-svn-id: http://opkg.googlecode.com/svn/trunk@137
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:23:29 +0000 (05:23 +0000)]
opkg: adding repository check function
git-svn-id: http://opkg.googlecode.com/svn/trunk@136
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:23:15 +0000 (05:23 +0000)]
opkg: let args_init return 0 is successful
returns errno if some error happens
git-svn-id: http://opkg.googlecode.com/svn/trunk@135
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:22:59 +0000 (05:22 +0000)]
opkg: Don't attempt to check the validity of a repository if package did not
come from a known source
git-svn-id: http://opkg.googlecode.com/svn/trunk@134
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:22:49 +0000 (05:22 +0000)]
opkg: Fix a small memory leak in opkg_download.
Patch from Alexandros Kostopoulos <akostop@inaccessnetworks.com>
git-svn-id: http://opkg.googlecode.com/svn/trunk@133
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:22:38 +0000 (05:22 +0000)]
opkg: remove unused code
git-svn-id: http://opkg.googlecode.com/svn/trunk@132
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:22:22 +0000 (05:22 +0000)]
opkg: Convert "multiple packages" message to NOTICE rather than ERROR
git-svn-id: http://opkg.googlecode.com/svn/trunk@131
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:22:06 +0000 (05:22 +0000)]
opkg: Consolidate error reporting from opkg_conf_init and ensure return value is
checked in the appropriate places.
opkg: Add a locking mechanism to prevent two instances of opkg being run at the
same time.
git-svn-id: http://opkg.googlecode.com/svn/trunk@130
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:21:47 +0000 (05:21 +0000)]
opkg: update error message
git-svn-id: http://opkg.googlecode.com/svn/trunk@129
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:21:36 +0000 (05:21 +0000)]
opkg: consolidate error enums and add an error for when no package matches
current architecture
git-svn-id: http://opkg.googlecode.com/svn/trunk@128
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:21:12 +0000 (05:21 +0000)]
opkg.c moving the sig_file_name into the section of HAVE_GPGME
git-svn-id: http://opkg.googlecode.com/svn/trunk@127
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:21:02 +0000 (05:21 +0000)]
opkg: add some command line arguments to libopkg_test
git-svn-id: http://opkg.googlecode.com/svn/trunk@126
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:20:49 +0000 (05:20 +0000)]
opkg: run pre-install check before listing upgradable packages to ensure all
data is valid. Fixes bug 1433.
git-svn-id: http://opkg.googlecode.com/svn/trunk@125
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:20:39 +0000 (05:20 +0000)]
opkg: update error handling for opkg_update_pkg in opkg.c and bump version number
git-svn-id: http://opkg.googlecode.com/svn/trunk@124
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:20:28 +0000 (05:20 +0000)]
opkg: improve opkg_install error reporting and include a check to verify repository signature during install
git-svn-id: http://opkg.googlecode.com/svn/trunk@123
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:20:10 +0000 (05:20 +0000)]
opkg: add string versions of error codes to libopkg_test
git-svn-id: http://opkg.googlecode.com/svn/trunk@122
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:20:01 +0000 (05:20 +0000)]
opkg: report errors from opkg_remove_pkg
git-svn-id: http://opkg.googlecode.com/svn/trunk@121
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:19:50 +0000 (05:19 +0000)]
opkg: fix typos
git-svn-id: http://opkg.googlecode.com/svn/trunk@120
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:19:40 +0000 (05:19 +0000)]
opkg: improve error reporting
git-svn-id: http://opkg.googlecode.com/svn/trunk@119
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:19:30 +0000 (05:19 +0000)]
opkg: remove redundant multiple_providers option and also remove redundant familiar_revision pointer from the pkg struct
git-svn-id: http://opkg.googlecode.com/svn/trunk@118
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:19:10 +0000 (05:19 +0000)]
opkg: strdup the command line arguments so we can free the struct properly later
git-svn-id: http://opkg.googlecode.com/svn/trunk@117
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:19:00 +0000 (05:19 +0000)]
opkg: (leak fixing, day 3) fixed final memory leaks fixed reported from
running libopkg_test
git-svn-id: http://opkg.googlecode.com/svn/trunk@116
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:18:44 +0000 (05:18 +0000)]
opkg: (leak fixing, day 2) lots and lots of memory leaks fixed
git-svn-id: http://opkg.googlecode.com/svn/trunk@115
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:18:11 +0000 (05:18 +0000)]
opkg: (leak fixing, day 1) lots and lots of memory leaks fixed
git-svn-id: http://opkg.googlecode.com/svn/trunk@114
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:17:51 +0000 (05:17 +0000)]
opkg: set callbacks before opkg_conf_init
git-svn-id: http://opkg.googlecode.com/svn/trunk@113
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:17:40 +0000 (05:17 +0000)]
opkg: remove verbose_wget option
git-svn-id: http://opkg.googlecode.com/svn/trunk@112
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:17:25 +0000 (05:17 +0000)]
opkg: re-read package lists after update
git-svn-id: http://opkg.googlecode.com/svn/trunk@111
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:17:14 +0000 (05:17 +0000)]
opkg: fix distcheck
git-svn-id: http://opkg.googlecode.com/svn/trunk@110
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:17:07 +0000 (05:17 +0000)]
opkg: fix remaining accidental commit
git-svn-id: http://opkg.googlecode.com/svn/trunk@109
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:16:59 +0000 (05:16 +0000)]
opkg: revert unintended changes in src/Makefile.am
git-svn-id: http://opkg.googlecode.com/svn/trunk@108
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:16:50 +0000 (05:16 +0000)]
opkg: add some error codes to libopkg
git-svn-id: http://opkg.googlecode.com/svn/trunk@107
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:16:36 +0000 (05:16 +0000)]
opkg: * Add opkg-key utility
* Move update-alternatives to utils directory
* Update opkg_verify_file function to import keys from /etc/opkg
git-svn-id: http://opkg.googlecode.com/svn/trunk@106
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:16:14 +0000 (05:16 +0000)]
opkg: fix distcheck issues
git-svn-id: http://opkg.googlecode.com/svn/trunk@105
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
ticktock35 [Mon, 15 Dec 2008 05:15:57 +0000 (05:15 +0000)]
opkg: remove per-target CFLAGS
git-svn-id: http://opkg.googlecode.com/svn/trunk@104
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358