pixdamix [Mon, 11 Jan 2010 09:51:32 +0000 (09:51 +0000)]
Fail if cache_dir is specified and not a directory
git-svn-id: http://opkg.googlecode.com/svn/trunk@514
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
pixdamix [Tue, 5 Jan 2010 17:18:12 +0000 (17:18 +0000)]
--download-only download using original names
--download-only will download the packages using original names
when --cache isn't supplied (in the current working directory)
git-svn-id: http://opkg.googlecode.com/svn/trunk@513
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
pixdamix [Tue, 5 Jan 2010 17:18:04 +0000 (17:18 +0000)]
Add an option to download packages but do not install/upgrade anything
git-svn-id: http://opkg.googlecode.com/svn/trunk@512
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
pixdamix [Mon, 28 Dec 2009 09:05:33 +0000 (09:05 +0000)]
Add a configure flag to specify the lockfile path
git-svn-id: http://opkg.googlecode.com/svn/trunk@511
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Tue, 22 Dec 2009 02:27:25 +0000 (02:27 +0000)]
Write out status files and file lists in opkg_upgrade_all().
git-svn-id: http://opkg.googlecode.com/svn/trunk@510
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Tue, 22 Dec 2009 01:52:44 +0000 (01:52 +0000)]
Return negative error code from opkg_download(), not curl error codes.
git-svn-id: http://opkg.googlecode.com/svn/trunk@509
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Mon, 21 Dec 2009 03:49:34 +0000 (03:49 +0000)]
Set the default verbosity before args_parse, where it wont override the args.
git-svn-id: http://opkg.googlecode.com/svn/trunk@508
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Mon, 21 Dec 2009 03:49:21 +0000 (03:49 +0000)]
Set the arch_priority when parsing the Architecture.
git-svn-id: http://opkg.googlecode.com/svn/trunk@507
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Mon, 21 Dec 2009 00:13:56 +0000 (00:13 +0000)]
Fix what I broke in r484. Patch from Kosmaty in issue 34. Thanks!
git-svn-id: http://opkg.googlecode.com/svn/trunk@506
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Mon, 21 Dec 2009 00:13:42 +0000 (00:13 +0000)]
Include config.h to pull in HAVE_* macros where needed.
git-svn-id: http://opkg.googlecode.com/svn/trunk@505
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Mon, 21 Dec 2009 00:13:22 +0000 (00:13 +0000)]
Initial stab at untangling the #include maze. Probably needs a second pass.
git-svn-id: http://opkg.googlecode.com/svn/trunk@504
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Sat, 19 Dec 2009 00:05:18 +0000 (00:05 +0000)]
Fix double free(). Found by Kosmaty (Issue 33). Thanks.
git-svn-id: http://opkg.googlecode.com/svn/trunk@503
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Fri, 18 Dec 2009 05:21:09 +0000 (05:21 +0000)]
Rearrange and clean up formatting.
git-svn-id: http://opkg.googlecode.com/svn/trunk@502
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Fri, 18 Dec 2009 05:20:56 +0000 (05:20 +0000)]
Move args.c contents into src/opkg-cl.c.
git-svn-id: http://opkg.googlecode.com/svn/trunk@501
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Fri, 18 Dec 2009 00:46:43 +0000 (00:46 +0000)]
Running a script does not change the state, modifying the state flags does.
git-svn-id: http://opkg.googlecode.com/svn/trunk@500
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Fri, 18 Dec 2009 00:46:30 +0000 (00:46 +0000)]
Move libopkg.c out into the src dir. It shouldn't be part of the library.
git-svn-id: http://opkg.googlecode.com/svn/trunk@499
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Thu, 17 Dec 2009 23:26:31 +0000 (23:26 +0000)]
Allow GLOB_NOMATCH, which also occurs if the leading dir does not exist.
This fixes OE's do_rootfs from failing without an error message.
git-svn-id: http://opkg.googlecode.com/svn/trunk@498
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Thu, 17 Dec 2009 23:26:19 +0000 (23:26 +0000)]
Spacing.
git-svn-id: http://opkg.googlecode.com/svn/trunk@497
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Thu, 17 Dec 2009 06:42:43 +0000 (06:42 +0000)]
Add a message callback function to the config struct for libopkg users.
git-svn-id: http://opkg.googlecode.com/svn/trunk@496
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Thu, 17 Dec 2009 06:42:29 +0000 (06:42 +0000)]
Be slightly less verbose at INFO message level.
git-svn-id: http://opkg.googlecode.com/svn/trunk@495
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Thu, 17 Dec 2009 06:42:16 +0000 (06:42 +0000)]
Print \n where needed.
git-svn-id: http://opkg.googlecode.com/svn/trunk@494
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Wed, 16 Dec 2009 03:09:02 +0000 (03:09 +0000)]
Don't mask variable of wider scope.
git-svn-id: http://opkg.googlecode.com/svn/trunk@493
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Mon, 14 Dec 2009 05:58:01 +0000 (05:58 +0000)]
Fix what I broke in r468.
git-svn-id: http://opkg.googlecode.com/svn/trunk@492
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Mon, 14 Dec 2009 05:57:47 +0000 (05:57 +0000)]
Don't need \n for perrors.
git-svn-id: http://opkg.googlecode.com/svn/trunk@491
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Mon, 14 Dec 2009 05:57:31 +0000 (05:57 +0000)]
Sort packages before listing them.
git-svn-id: http://opkg.googlecode.com/svn/trunk@490
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Fri, 11 Dec 2009 06:07:49 +0000 (06:07 +0000)]
Print full version, not just pkg->version.
git-svn-id: http://opkg.googlecode.com/svn/trunk@489
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Fri, 11 Dec 2009 06:07:36 +0000 (06:07 +0000)]
Allow use of opkg internals by libopkg users. Not intended to be permanent.
git-svn-id: http://opkg.googlecode.com/svn/trunk@488
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Fri, 11 Dec 2009 04:36:10 +0000 (04:36 +0000)]
I've made substantial changes to these files. Add new copyright line.
git-svn-id: http://opkg.googlecode.com/svn/trunk@487
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Fri, 11 Dec 2009 04:35:57 +0000 (04:35 +0000)]
Rewrite the error paths.
git-svn-id: http://opkg.googlecode.com/svn/trunk@486
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Fri, 11 Dec 2009 04:35:41 +0000 (04:35 +0000)]
Not all ERROR messages are in paths that return as an error. Print them anyway.
git-svn-id: http://opkg.googlecode.com/svn/trunk@485
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Fri, 11 Dec 2009 03:04:53 +0000 (03:04 +0000)]
Remove args_t and cleanup unused stuff.
git-svn-id: http://opkg.googlecode.com/svn/trunk@484
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Fri, 11 Dec 2009 03:04:35 +0000 (03:04 +0000)]
Move loading of feeds and status files out of opkg_conf_init().
git-svn-id: http://opkg.googlecode.com/svn/trunk@483
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Thu, 10 Dec 2009 06:01:19 +0000 (06:01 +0000)]
Print error messages instead of returning error codes.
git-svn-id: http://opkg.googlecode.com/svn/trunk@482
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Thu, 10 Dec 2009 06:00:51 +0000 (06:00 +0000)]
Clarify why we're not using fseek(), use fseek() where applicable.
git-svn-id: http://opkg.googlecode.com/svn/trunk@481
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Thu, 10 Dec 2009 06:00:34 +0000 (06:00 +0000)]
indent -kr -i8 -psl -hnl -l80 opkg.c
git-svn-id: http://opkg.googlecode.com/svn/trunk@480
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Thu, 10 Dec 2009 05:59:49 +0000 (05:59 +0000)]
Remove struct _opkg_package_t.
git-svn-id: http://opkg.googlecode.com/svn/trunk@479
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Wed, 9 Dec 2009 06:37:09 +0000 (06:37 +0000)]
Implement list all command. Print full version string.
git-svn-id: http://opkg.googlecode.com/svn/trunk@478
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Wed, 9 Dec 2009 06:24:29 +0000 (06:24 +0000)]
Fix infinite loop created when I removed the masked variable i.
git-svn-id: http://opkg.googlecode.com/svn/trunk@477
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Wed, 9 Dec 2009 06:05:48 +0000 (06:05 +0000)]
And make the install command work. WTF?
git-svn-id: http://opkg.googlecode.com/svn/trunk@476
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Wed, 9 Dec 2009 06:05:29 +0000 (06:05 +0000)]
Make the "update" command work. Previously, you had to type "updd..."
For a test program, it can't have seen much testing.
git-svn-id: http://opkg.googlecode.com/svn/trunk@475
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Wed, 9 Dec 2009 06:05:08 +0000 (06:05 +0000)]
Remove opkg_package_t from libopkg_test.c. Also, use OFFLINE_ROOT env var.
git-svn-id: http://opkg.googlecode.com/svn/trunk@474
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Wed, 9 Dec 2009 06:04:33 +0000 (06:04 +0000)]
Get rid of opkg_package_t.
We can't provide all the useful info without duplicating pkg_t, so just
use pkg_t.
git-svn-id: http://opkg.googlecode.com/svn/trunk@473
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Wed, 9 Dec 2009 05:22:43 +0000 (05:22 +0000)]
Fix lock_fd... How did I manage to break that?
Remove some redundant if statements too.
git-svn-id: http://opkg.googlecode.com/svn/trunk@472
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Wed, 9 Dec 2009 01:20:03 +0000 (01:20 +0000)]
Merge commit 'grg' into HEAD
git-svn-id: http://opkg.googlecode.com/svn/trunk@471
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Sun, 6 Dec 2009 23:59:59 +0000 (23:59 +0000)]
Bump version number.
git-svn-id: http://opkg.googlecode.com/svn/trunk@454
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Fri, 4 Dec 2009 01:09:33 +0000 (01:09 +0000)]
Remove -Werror from libopkg CFLAGS.
While I believe all warnings should be fixed, it is not possible to test opkg
on all systems with all compiler versions. Warnings for end users on such
systems should not cause build failure.
And with the addition of shave, warnings are really easy to see without -Werror.
git-svn-id: http://opkg.googlecode.com/svn/trunk@446
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Fri, 4 Dec 2009 01:00:02 +0000 (01:00 +0000)]
Ignore extraction errors, for now. Requested by Koen.
As opkg has never failed from these errors in the past, many recipes in
OpenEmbedded have come to rely on this behaviour. So proceed regardless of
extraction errors for now, to give the OE folks a chance to fix broken
packages first.
git-svn-id: http://opkg.googlecode.com/svn/trunk@445
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Thu, 3 Dec 2009 04:11:26 +0000 (04:11 +0000)]
Two fixes from Martin Jansa <martin.jansa@gmail.com>.
* if there are more alternatives with highest priority, use the one last
in alternatives file (latest installed)
* if target exists and is a directory, remove link, otherwise new
alternative link is created inside that direstory
git-svn-id: http://opkg.googlecode.com/svn/trunk@439
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Thu, 3 Dec 2009 03:04:07 +0000 (03:04 +0000)]
Fix truncation problem when reading in long lines. Found by Koen Kooi.
After realloc()ing a second time for long lines, buflen was one byte short.
It did not take into account buf being pointed at the NULL terminator, before
the end of the buffer. So when fgets() was next called, it inserted its NULL
terminator one byte earlier than expected. The earlier terminator was not
overwritten by subsequent iterations as it should have been.
git-svn-id: http://opkg.googlecode.com/svn/trunk@438
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Thu, 3 Dec 2009 03:03:48 +0000 (03:03 +0000)]
Free memory when there are unresolved dependencies.
git-svn-id: http://opkg.googlecode.com/svn/trunk@437
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
pixdamix [Tue, 1 Dec 2009 08:02:59 +0000 (08:02 +0000)]
patch for opkg_download.c compile abort
Fix problem wich may lead to FALSE and TRUE being redefined.
Thanks to John L. for reporting this problem
git-svn-id: http://opkg.googlecode.com/svn/trunk@413
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
florian.boor [Fri, 27 Nov 2009 12:27:33 +0000 (12:27 +0000)]
Maks sure scripts get packaged
git-svn-id: http://opkg.googlecode.com/svn/trunk@402
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
florian.boor [Fri, 27 Nov 2009 12:26:35 +0000 (12:26 +0000)]
Fix typo in file name in order to fix distcheck.
git-svn-id: http://opkg.googlecode.com/svn/trunk@401
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Fri, 27 Nov 2009 05:32:52 +0000 (05:32 +0000)]
Remove unused parameter from pkg_hash_fetch_best_installation_candidate().
git-svn-id: http://opkg.googlecode.com/svn/trunk@397
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Fri, 27 Nov 2009 05:32:37 +0000 (05:32 +0000)]
Finding a provider which is has an incompatible arch should not prevent
the installation of others which are compatible.
git-svn-id: http://opkg.googlecode.com/svn/trunk@396
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Fri, 27 Nov 2009 04:09:44 +0000 (04:09 +0000)]
Remove enum opkg_error.
The return codes aren't particularly useful and trying to have a useful one
for every error scenario would be like extending errno. Good error messages
via opkg_message() are far more appropriate.
git-svn-id: http://opkg.googlecode.com/svn/trunk@395
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Fri, 27 Nov 2009 04:09:26 +0000 (04:09 +0000)]
Be slightly less verbose by default.
git-svn-id: http://opkg.googlecode.com/svn/trunk@394
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Fri, 27 Nov 2009 04:09:15 +0000 (04:09 +0000)]
Fix some errno abuse.
git-svn-id: http://opkg.googlecode.com/svn/trunk@393
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Fri, 27 Nov 2009 01:22:10 +0000 (01:22 +0000)]
Check the unzip child process for errors and pass the upwards. Also, avoid child from being killed by SIGPIPE.
git-svn-id: http://opkg.googlecode.com/svn/trunk@392
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Fri, 27 Nov 2009 00:42:00 +0000 (00:42 +0000)]
Provide error checking for users of pkg_extract_* functions.
git-svn-id: http://opkg.googlecode.com/svn/trunk@391
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Fri, 27 Nov 2009 00:41:44 +0000 (00:41 +0000)]
Add error checking to deb_extract(), unarchive(), extract_archive(). et al.
git-svn-id: http://opkg.googlecode.com/svn/trunk@390
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Fri, 27 Nov 2009 00:41:28 +0000 (00:41 +0000)]
Add __FUNCTION__ to the error mesage.
git-svn-id: http://opkg.googlecode.com/svn/trunk@389
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Fri, 27 Nov 2009 00:41:18 +0000 (00:41 +0000)]
Name it after what it does: s/extract_to_stdout/extract_to_stream/
git-svn-id: http://opkg.googlecode.com/svn/trunk@388
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
pixdamix [Thu, 26 Nov 2009 13:57:59 +0000 (13:57 +0000)]
Add missing include
git-svn-id: http://opkg.googlecode.com/svn/trunk@387
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Thu, 26 Nov 2009 05:41:19 +0000 (05:41 +0000)]
Fix problem introduced in r382. Pointed out by jlc, thanks!
git-svn-id: http://opkg.googlecode.com/svn/trunk@386
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Thu, 26 Nov 2009 04:04:28 +0000 (04:04 +0000)]
libbb.h cleanup.
git-svn-id: http://opkg.googlecode.com/svn/trunk@385
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Thu, 26 Nov 2009 04:04:15 +0000 (04:04 +0000)]
Various unarchive.c cleanups.
git-svn-id: http://opkg.googlecode.com/svn/trunk@384
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Thu, 26 Nov 2009 01:42:53 +0000 (01:42 +0000)]
Remove str_util.{c,h}
git-svn-id: http://opkg.googlecode.com/svn/trunk@383
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Thu, 26 Nov 2009 01:42:27 +0000 (01:42 +0000)]
file_util.c cleanups. Remove redundant str_chomp from str_util.c.
git-svn-id: http://opkg.googlecode.com/svn/trunk@382
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Thu, 26 Nov 2009 01:42:09 +0000 (01:42 +0000)]
malloc -> xmalloc
git-svn-id: http://opkg.googlecode.com/svn/trunk@381
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Thu, 26 Nov 2009 01:41:58 +0000 (01:41 +0000)]
Minor cleanup for opkg_upgrade.c
git-svn-id: http://opkg.googlecode.com/svn/trunk@380
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Wed, 25 Nov 2009 23:23:22 +0000 (23:23 +0000)]
Propagate errors upwards.
git-svn-id: http://opkg.googlecode.com/svn/trunk@379
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Wed, 25 Nov 2009 23:23:10 +0000 (23:23 +0000)]
Various clean ups.
git-svn-id: http://opkg.googlecode.com/svn/trunk@378
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Wed, 25 Nov 2009 23:22:58 +0000 (23:22 +0000)]
Return void, not int.
git-svn-id: http://opkg.googlecode.com/svn/trunk@377
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Wed, 25 Nov 2009 22:21:24 +0000 (22:21 +0000)]
Fix duplicate and add a name.
git-svn-id: http://opkg.googlecode.com/svn/trunk@376
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
pixdamix [Wed, 25 Nov 2009 21:37:50 +0000 (21:37 +0000)]
Add a list of Contributors (appologies to any missed)
git-svn-id: http://opkg.googlecode.com/svn/trunk@375
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Wed, 25 Nov 2009 05:53:42 +0000 (05:53 +0000)]
Plug leaks found when using --force-removal-of-dependent-packages.
git-svn-id: http://opkg.googlecode.com/svn/trunk@374
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Wed, 25 Nov 2009 05:39:24 +0000 (05:39 +0000)]
Various cleanups in opkg_remove.{c,h}
git-svn-id: http://opkg.googlecode.com/svn/trunk@373
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Wed, 25 Nov 2009 04:23:03 +0000 (04:23 +0000)]
Various cleanups for pkg.{c,h}.
git-svn-id: http://opkg.googlecode.com/svn/trunk@372
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Wed, 25 Nov 2009 04:22:50 +0000 (04:22 +0000)]
One more TODO.
git-svn-id: http://opkg.googlecode.com/svn/trunk@371
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Wed, 25 Nov 2009 04:22:40 +0000 (04:22 +0000)]
Add vim swp files.
git-svn-id: http://opkg.googlecode.com/svn/trunk@370
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Wed, 25 Nov 2009 04:22:31 +0000 (04:22 +0000)]
Remove unused functions. Shuffle things around and remove forward declarations.
git-svn-id: http://opkg.googlecode.com/svn/trunk@369
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Wed, 25 Nov 2009 04:22:20 +0000 (04:22 +0000)]
Make a couple of functions static, and return void since they cannot fail.
git-svn-id: http://opkg.googlecode.com/svn/trunk@368
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Wed, 25 Nov 2009 01:41:01 +0000 (01:41 +0000)]
Update README and TODO. Add myself to AUTHORS.
git-svn-id: http://opkg.googlecode.com/svn/trunk@367
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
pixdamix [Tue, 24 Nov 2009 10:58:01 +0000 (10:58 +0000)]
Add a .gitignore file for the ones using git-svn
git-svn-id: http://opkg.googlecode.com/svn/trunk@366
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Tue, 24 Nov 2009 08:39:16 +0000 (08:39 +0000)]
Fix warning on 64bit arches.
git-svn-id: http://opkg.googlecode.com/svn/trunk@365
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
pixdamix [Tue, 24 Nov 2009 08:04:39 +0000 (08:04 +0000)]
shave: making the autotools output sane
Use shave (http://git.lespiau.name/cgit/shave) to make compilation more
human friendly.
Shave is enabled by default, Use --disable-shave to see the actual
compiler and linker commands being executed.
git-svn-id: http://opkg.googlecode.com/svn/trunk@364
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Tue, 24 Nov 2009 06:35:49 +0000 (06:35 +0000)]
Clean up opkg_depends_cmd() and opkg_what_depends_conflicts_cmd().
git-svn-id: http://opkg.googlecode.com/svn/trunk@363
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Tue, 24 Nov 2009 06:35:38 +0000 (06:35 +0000)]
Do the right thing if we have a version but no constraint.
The package maintainer shouldn't do this, but it happens ocassionally.
git-svn-id: http://opkg.googlecode.com/svn/trunk@362
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Tue, 24 Nov 2009 05:13:10 +0000 (05:13 +0000)]
Provide a more useful comment.
git-svn-id: http://opkg.googlecode.com/svn/trunk@361
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Tue, 24 Nov 2009 04:55:51 +0000 (04:55 +0000)]
Remove the purge command. Undocumented and only duplicates remove functionality.
git-svn-id: http://opkg.googlecode.com/svn/trunk@360
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Tue, 24 Nov 2009 04:41:46 +0000 (04:41 +0000)]
Remove list_pending command. Undocumented and the pending_dir was unpopulated.
git-svn-id: http://opkg.googlecode.com/svn/trunk@359
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Tue, 24 Nov 2009 04:26:36 +0000 (04:26 +0000)]
Remove dead code in opkg_remove_cmd().
git-svn-id: http://opkg.googlecode.com/svn/trunk@358
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Tue, 24 Nov 2009 04:12:07 +0000 (04:12 +0000)]
Remove useless memory allocation and strcpy.
git-svn-id: http://opkg.googlecode.com/svn/trunk@357
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Tue, 24 Nov 2009 02:35:28 +0000 (02:35 +0000)]
Remove remaining uses of pkg->*_str arrays and free() them after parsing.
Saves about 800kb in peak memory usage for my package list (6000 packages).
git-svn-id: http://opkg.googlecode.com/svn/trunk@356
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Tue, 24 Nov 2009 02:35:17 +0000 (02:35 +0000)]
Fix a leak found when using --force-reinstall.
git-svn-id: http://opkg.googlecode.com/svn/trunk@355
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Tue, 24 Nov 2009 02:35:06 +0000 (02:35 +0000)]
There should be a space before the bracket.
git-svn-id: http://opkg.googlecode.com/svn/trunk@354
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Tue, 24 Nov 2009 02:34:55 +0000 (02:34 +0000)]
Fix pkg_depend_str() to not use pkg->depends_str.
git-svn-id: http://opkg.googlecode.com/svn/trunk@353
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
graham.gower [Tue, 24 Nov 2009 02:31:32 +0000 (02:31 +0000)]
There is no need to use a buffer at all.
git-svn-id: http://opkg.googlecode.com/svn/trunk@352
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
pixdamix [Mon, 23 Nov 2009 08:28:58 +0000 (08:28 +0000)]
Allow to install a package from a read-only dir
This patch allows to install a package which is located on
a readonly filesystem or folder by moving the control file
into the tmp_dir directory
git-svn-id: http://opkg.googlecode.com/svn/trunk@351
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358