oweals/opkg-lede.git
11 years agoAdd generated man pages to .gitignore.
graham.gower [Wed, 18 Aug 2010 05:40:28 +0000 (05:40 +0000)]
Add generated man pages to .gitignore.

git-svn-id: http://opkg.googlecode.com/svn/trunk@554 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358

11 years agoAllow blacklisting a package in the status file.
graham.gower [Wed, 18 Aug 2010 05:40:17 +0000 (05:40 +0000)]
Allow blacklisting a package in the status file.

To blacklist a particular package, add the following status entry for the
package to be blacklisted:
Status: deinstall hold not-installed

Should fix the opkg end of Issue #46. OpenEmbedded will need to correctly
prime the status file.

git-svn-id: http://opkg.googlecode.com/svn/trunk@553 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358

11 years agoRemove trailing whitespace. Sorry if this breaks your patches.
graham.gower [Wed, 18 Aug 2010 03:39:02 +0000 (03:39 +0000)]
Remove trailing whitespace. Sorry if this breaks your patches.

git-svn-id: http://opkg.googlecode.com/svn/trunk@552 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358

11 years agoRemove outdated comment regarding an old bug.
graham.gower [Wed, 18 Aug 2010 02:27:08 +0000 (02:27 +0000)]
Remove outdated comment regarding an old bug.

I managed to track down the "bug 1277" this comment referred to.
http://web.archive.org/web/20050503234854/http://handhelds.org/~bugzilla/show_bug.cgi?id=1277

This referred to the status file containing incorrect information after a
failed upgrade.

git-svn-id: http://opkg.googlecode.com/svn/trunk@551 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358

11 years agoFix segfault using the --verbosity option.
graham.gower [Thu, 12 Aug 2010 00:37:47 +0000 (00:37 +0000)]
Fix segfault using the --verbosity option.

Patch from David Bachelart via Issue #57.

git-svn-id: http://opkg.googlecode.com/svn/trunk@550 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358

11 years agoAnd remove the autogenerated files...
graham.gower [Tue, 10 Aug 2010 05:39:44 +0000 (05:39 +0000)]
And remove the autogenerated files...

git-svn-id: http://opkg.googlecode.com/svn/trunk@549 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358

11 years agoForgot these two files in the last commit. Oops.
graham.gower [Tue, 10 Aug 2010 05:38:37 +0000 (05:38 +0000)]
Forgot these two files in the last commit. Oops.

git-svn-id: http://opkg.googlecode.com/svn/trunk@548 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358

11 years agoAdd man pages for opkg-cl and opkg-keys. From David Bachelart (Issue #56).
graham.gower [Tue, 10 Aug 2010 05:38:23 +0000 (05:38 +0000)]
Add man pages for opkg-cl and opkg-keys. From David Bachelart (Issue #56).

git-svn-id: http://opkg.googlecode.com/svn/trunk@547 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358

11 years agoThis will never be done, offline roots often point at other architectures.
graham.gower [Tue, 10 Aug 2010 05:38:10 +0000 (05:38 +0000)]
This will never be done, offline roots often point at other architectures.

git-svn-id: http://opkg.googlecode.com/svn/trunk@546 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358

11 years agoThis was done some time ago.
graham.gower [Tue, 10 Aug 2010 05:37:59 +0000 (05:37 +0000)]
This was done some time ago.

git-svn-id: http://opkg.googlecode.com/svn/trunk@545 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358

11 years agoFix creation of symlinks to files with long names (greater than 100 chars).
graham.gower [Wed, 4 Aug 2010 00:45:57 +0000 (00:45 +0000)]
Fix creation of symlinks to files with long names (greater than 100 chars).

From "paradox.kahn", see Issue #55.

git-svn-id: http://opkg.googlecode.com/svn/trunk@544 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358

11 years agoFix infinite loop in list_upgradable in libopkg.
graham.gower [Mon, 12 Jul 2010 23:37:21 +0000 (23:37 +0000)]
Fix infinite loop in list_upgradable in libopkg.

From Sebastian Krzyszkowiak.

git-svn-id: http://opkg.googlecode.com/svn/trunk@543 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358

11 years agoDon't unlink the lock file in the event that it cannot be locked.
graham.gower [Thu, 8 Jul 2010 00:44:21 +0000 (00:44 +0000)]
Don't unlink the lock file in the event that it cannot be locked.

Fixes Issue #54.

git-svn-id: http://opkg.googlecode.com/svn/trunk@542 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358

11 years agoBe consistent in how to check return codes for these functions.
graham.gower [Tue, 29 Jun 2010 01:56:10 +0000 (01:56 +0000)]
Be consistent in how to check return codes for these functions.

git-svn-id: http://opkg.googlecode.com/svn/trunk@541 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358

11 years agoImprove error propagation.
graham.gower [Tue, 29 Jun 2010 01:53:39 +0000 (01:53 +0000)]
Improve error propagation.

git-svn-id: http://opkg.googlecode.com/svn/trunk@540 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358

11 years agos/ipkgetcdir/opkgetcdir/
graham.gower [Mon, 28 Jun 2010 00:25:22 +0000 (00:25 +0000)]
s/ipkgetcdir/opkgetcdir/

From David Bachelart via Issue #53.

git-svn-id: http://opkg.googlecode.com/svn/trunk@539 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358

11 years agoFix --force-reinstall by removing special case code. Just remove the pkg first.
graham.gower [Mon, 21 Jun 2010 23:34:25 +0000 (23:34 +0000)]
Fix --force-reinstall by removing special case code. Just remove the pkg first.

This should fix Issue #51.

git-svn-id: http://opkg.googlecode.com/svn/trunk@538 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358

11 years agoMinor cleanup/simplification.
graham.gower [Mon, 21 Jun 2010 23:34:12 +0000 (23:34 +0000)]
Minor cleanup/simplification.

git-svn-id: http://opkg.googlecode.com/svn/trunk@537 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358

11 years agoClaim ownership of a file if the previous owner has obsoleted it.
graham.gower [Fri, 11 Jun 2010 02:07:58 +0000 (02:07 +0000)]
Claim ownership of a file if the previous owner has obsoleted it.

This commit, along with the last few, should fix Issue #50.

git-svn-id: http://opkg.googlecode.com/svn/trunk@536 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358

11 years agoPromote file removal message from INFO to NOTICE.
graham.gower [Fri, 11 Jun 2010 02:07:45 +0000 (02:07 +0000)]
Promote file removal message from INFO to NOTICE.

git-svn-id: http://opkg.googlecode.com/svn/trunk@535 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358

11 years agoString the offline root path from the file_name in file_hash_get_file_owner().
graham.gower [Fri, 11 Jun 2010 02:07:29 +0000 (02:07 +0000)]
String the offline root path from the file_name in file_hash_get_file_owner().

file_hash_set_file_owner() strips the offline root path, so this reciprocal
function should do likewise. This makes behaviour consistent with and without
an offline root.

git-svn-id: http://opkg.googlecode.com/svn/trunk@534 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358

11 years agoCorrectly update the obs_file_hash in offline root mode.
graham.gower [Thu, 10 Jun 2010 07:30:28 +0000 (07:30 +0000)]
Correctly update the obs_file_hash in offline root mode.

git-svn-id: http://opkg.googlecode.com/svn/trunk@533 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358

11 years agoFix check_data_file_clashes() for offline root mode. (almost anyway)
graham.gower [Thu, 10 Jun 2010 07:30:15 +0000 (07:30 +0000)]
Fix check_data_file_clashes() for offline root mode. (almost anyway)

pkg_get_installed_files() returns a list of files with the offline root path
already included, so don't add it again.

Fix some error message formatting while here.

git-svn-id: http://opkg.googlecode.com/svn/trunk@532 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358

11 years agoCheck that a file belongs to the package before removing it
graham.gower [Tue, 8 Jun 2010 01:05:01 +0000 (01:05 +0000)]
Check that a file belongs to the package before removing it

Fixes the test case in Issue #50.

git-svn-id: http://opkg.googlecode.com/svn/trunk@531 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358

11 years agoBump maximum message length from 256 to 4096.
graham.gower [Wed, 2 Jun 2010 00:05:02 +0000 (00:05 +0000)]
Bump maximum message length from 256 to 4096.

Errors seen in the wild can easily exceed 256 chars, especially when there is
no limit imposed on maximum file path lengths under most systems. This should
probably be changed at some point, to use realloc instead of a static buffer
on the stack.

git-svn-id: http://opkg.googlecode.com/svn/trunk@530 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358

11 years agoAdd a message for the case that no installation candidate can be found.
graham.gower [Thu, 29 Apr 2010 06:59:56 +0000 (06:59 +0000)]
Add a message for the case that no installation candidate can be found.

git-svn-id: http://opkg.googlecode.com/svn/trunk@529 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358

11 years agoDon't try to print cmd_name before its initialised. From Amanous, Issue #48.
graham.gower [Tue, 13 Apr 2010 23:16:40 +0000 (23:16 +0000)]
Don't try to print cmd_name before its initialised. From Amanous, Issue #48.

git-svn-id: http://opkg.googlecode.com/svn/trunk@528 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358

11 years agoDon't use c++ reserved word in header. Remove void* cast.
graham.gower [Sun, 14 Mar 2010 23:18:40 +0000 (23:18 +0000)]
Don't use c++ reserved word in header. Remove void* cast.

Fixes compilation of header when used with C++. A slightly modified patch
from Paul Eggleton.

git-svn-id: http://opkg.googlecode.com/svn/trunk@527 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358

11 years agoUpgrade message from NOTICE to ERROR.
graham.gower [Thu, 4 Mar 2010 22:48:08 +0000 (22:48 +0000)]
Upgrade message from NOTICE to ERROR.

Koen pointed out that this information is important enough for users that it
should be deferred until the end of the output, so that its not lost in a
small scroll buffer.

git-svn-id: http://opkg.googlecode.com/svn/trunk@526 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358

11 years agoDowngrade message from ERROR to NOTICE.
graham.gower [Thu, 4 Mar 2010 22:47:57 +0000 (22:47 +0000)]
Downgrade message from ERROR to NOTICE.

This is a normal condition for feeds which supply multiple target
architectures, as pointed out by Koen Kooi.

git-svn-id: http://opkg.googlecode.com/svn/trunk@525 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358

11 years agoBump revision for release.
graham.gower [Sun, 21 Feb 2010 23:21:50 +0000 (23:21 +0000)]
Bump revision for release.

git-svn-id: http://opkg.googlecode.com/svn/trunk@523 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358

11 years agoFlush stdout, stderr before forking. From Richard Purdie. Thanks!
graham.gower [Mon, 15 Feb 2010 23:10:02 +0000 (23:10 +0000)]
Flush stdout, stderr before forking. From Richard Purdie. Thanks!

Patch to remove "duplicate" bits of logs from opkg output, which
massively simplifies do_rootfs logs. The reason is we get unflushed
data passed to the children and duplicated.

RP - 26/1/10

git-svn-id: http://opkg.googlecode.com/svn/trunk@522 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358

11 years agoUse ordered list when configuring packages.
pixdamix [Wed, 10 Feb 2010 08:47:28 +0000 (08:47 +0000)]
Use ordered list when configuring packages.

Use the ordered list when configuring packages, and not the unordered
one. Fix installation of some dependend packages.

git-svn-id: http://opkg.googlecode.com/svn/trunk@521 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358

11 years agoMake the error message easier to read for multiple unsatisfied dependencies.
graham.gower [Tue, 9 Feb 2010 22:39:11 +0000 (22:39 +0000)]
Make the error message easier to read for multiple unsatisfied dependencies.

git-svn-id: http://opkg.googlecode.com/svn/trunk@520 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358

11 years agoPropagate errors up the call stack. Patch by Jens Erdmann <j.erdmann@road.de>.
graham.gower [Wed, 27 Jan 2010 23:11:41 +0000 (23:11 +0000)]
Propagate errors up the call stack.  Patch by Jens Erdmann <j.erdmann@road.de>.

git-svn-id: http://opkg.googlecode.com/svn/trunk@519 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358

11 years agoDon't print an error if trying to write status file to a read only filesystem.
graham.gower [Tue, 12 Jan 2010 04:52:48 +0000 (04:52 +0000)]
Don't print an error if trying to write status file to a read only filesystem.

git-svn-id: http://opkg.googlecode.com/svn/trunk@518 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358

11 years agoDon't try to close the file if its not open.
graham.gower [Tue, 12 Jan 2010 04:52:37 +0000 (04:52 +0000)]
Don't try to close the file if its not open.

git-svn-id: http://opkg.googlecode.com/svn/trunk@517 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358

11 years agoPrint an error in the case of a broken control.tar.gz file within the archive.
graham.gower [Tue, 12 Jan 2010 04:14:14 +0000 (04:14 +0000)]
Print an error in the case of a broken control.tar.gz file within the archive.

git-svn-id: http://opkg.googlecode.com/svn/trunk@516 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358

11 years agos/dependences/dependencies/ Pointed out by klemmster in Issue 40.
graham.gower [Tue, 12 Jan 2010 00:52:10 +0000 (00:52 +0000)]
s/dependences/dependencies/ Pointed out by klemmster in Issue 40.

git-svn-id: http://opkg.googlecode.com/svn/trunk@515 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358

11 years agoFail if cache_dir is specified and not a directory
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

11 years ago--download-only download using original names
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

11 years agoAdd an option to download packages but do not install/upgrade anything
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

11 years agoAdd a configure flag to specify the lockfile path
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

11 years agoWrite out status files and file lists in opkg_upgrade_all().
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

11 years agoReturn negative error code from opkg_download(), not curl error codes.
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

11 years agoSet the default verbosity before args_parse, where it wont override the args.
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

11 years agoSet the arch_priority when parsing the Architecture.
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

11 years agoFix what I broke in r484. Patch from Kosmaty in issue 34. Thanks!
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

11 years agoInclude config.h to pull in HAVE_* macros where needed.
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

11 years agoInitial stab at untangling the #include maze. Probably needs a second pass.
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

11 years agoFix double free(). Found by Kosmaty (Issue 33). Thanks.
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

11 years agoRearrange and clean up formatting.
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

11 years agoMove args.c contents into src/opkg-cl.c.
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

11 years agoRunning a script does not change the state, modifying the state flags does.
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

11 years agoMove libopkg.c out into the src dir. It shouldn't be part of the library.
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

11 years agoAllow GLOB_NOMATCH, which also occurs if the leading dir does not exist.
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

11 years agoSpacing.
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

11 years agoAdd a message callback function to the config struct for libopkg users.
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

11 years agoBe slightly less verbose at INFO message level.
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

11 years agoPrint \n where needed.
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

11 years agoDon't mask variable of wider scope.
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

11 years agoFix what I broke in r468.
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

11 years agoDon't need \n for perrors.
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

11 years agoSort packages before listing them.
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

11 years agoPrint full version, not just pkg->version.
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

11 years agoAllow use of opkg internals by libopkg users. Not intended to be permanent.
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

11 years agoI've made substantial changes to these files. Add new copyright line.
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

11 years agoRewrite the error paths.
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

11 years agoNot all ERROR messages are in paths that return as an error. Print them anyway.
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

11 years agoRemove args_t and cleanup unused stuff.
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

11 years agoMove loading of feeds and status files out of opkg_conf_init().
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

11 years agoPrint error messages instead of returning error codes.
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

11 years agoClarify why we're not using fseek(), use fseek() where applicable.
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

11 years agoindent -kr -i8 -psl -hnl -l80 opkg.c
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

11 years agoRemove struct _opkg_package_t.
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

11 years agoImplement list all command. Print full version string.
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

11 years agoFix infinite loop created when I removed the masked variable i.
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

11 years agoAnd make the install command work. WTF?
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

11 years agoMake the "update" command work. Previously, you had to type "updd..."
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

11 years agoRemove opkg_package_t from libopkg_test.c. Also, use OFFLINE_ROOT env var.
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

11 years agoGet rid of opkg_package_t.
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

11 years agoFix lock_fd... How did I manage to break that?
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

11 years agoMerge commit 'grg' into HEAD
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

11 years agoBump version number.
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

11 years agoRemove -Werror from libopkg CFLAGS.
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

11 years agoIgnore extraction errors, for now. Requested by Koen.
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

11 years agoTwo fixes from Martin Jansa <martin.jansa@gmail.com>.
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

11 years agoFix truncation problem when reading in long lines. Found by Koen Kooi.
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

11 years agoFree memory when there are unresolved dependencies.
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

11 years agopatch for opkg_download.c compile abort
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

11 years agoMaks sure scripts get packaged
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

11 years agoFix typo in file name in order to fix distcheck.
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

11 years agoRemove unused parameter from pkg_hash_fetch_best_installation_candidate().
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

11 years agoFinding a provider which is has an incompatible arch should not prevent
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

11 years agoRemove enum opkg_error.
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

11 years agoBe slightly less verbose by default.
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

11 years agoFix some errno abuse.
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

11 years agoCheck the unzip child process for errors and pass the upwards. Also, avoid child...
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

11 years agoProvide error checking for users of pkg_extract_* functions.
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

11 years agoAdd error checking to deb_extract(), unarchive(), extract_archive(). et al.
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