summaryrefslogtreecommitdiffstats
path: root/libopkg
Commit message (Collapse)AuthorAgeFilesLines
* Use ordered list when configuring packages.pixdamix2010-02-101-2/+2
| | | | | | | 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
* Make the error message easier to read for multiple unsatisfied dependencies.graham.gower2010-02-091-1/+1
| | | | git-svn-id: http://opkg.googlecode.com/svn/trunk@520 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
* Propagate errors up the call stack. Patch by Jens Erdmann <j.erdmann@road.de>.graham.gower2010-01-272-26/+35
| | | | git-svn-id: http://opkg.googlecode.com/svn/trunk@519 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
* Don't print an error if trying to write status file to a read only filesystem.graham.gower2010-01-111-1/+1
| | | | git-svn-id: http://opkg.googlecode.com/svn/trunk@518 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
* Don't try to close the file if its not open.graham.gower2010-01-111-1/+1
| | | | git-svn-id: http://opkg.googlecode.com/svn/trunk@517 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
* Print an error in the case of a broken control.tar.gz file within the archive.graham.gower2010-01-111-1/+6
| | | | git-svn-id: http://opkg.googlecode.com/svn/trunk@516 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
* s/dependences/dependencies/ Pointed out by klemmster in Issue 40.graham.gower2010-01-113-3/+3
| | | | git-svn-id: http://opkg.googlecode.com/svn/trunk@515 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
* Fail if cache_dir is specified and not a directorypixdamix2010-01-111-0/+7
| | | | git-svn-id: http://opkg.googlecode.com/svn/trunk@514 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
* --download-only download using original namespixdamix2010-01-051-1/+9
| | | | | | | --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
* Add an option to download packages but do not install/upgrade anythingpixdamix2010-01-053-12/+27
| | | | git-svn-id: http://opkg.googlecode.com/svn/trunk@512 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
* Add a configure flag to specify the lockfile pathpixdamix2009-12-282-3/+3
| | | | git-svn-id: http://opkg.googlecode.com/svn/trunk@511 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
* Write out status files and file lists in opkg_upgrade_all().graham.gower2009-12-211-0/+4
| | | | git-svn-id: http://opkg.googlecode.com/svn/trunk@510 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
* Return negative error code from opkg_download(), not curl error codes.graham.gower2009-12-212-18/+7
| | | | git-svn-id: http://opkg.googlecode.com/svn/trunk@509 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
* Set the arch_priority when parsing the Architecture.graham.gower2009-12-203-46/+18
| | | | git-svn-id: http://opkg.googlecode.com/svn/trunk@507 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
* Include config.h to pull in HAVE_* macros where needed.graham.gower2009-12-209-1/+15
| | | | git-svn-id: http://opkg.googlecode.com/svn/trunk@505 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
* Initial stab at untangling the #include maze. Probably needs a second pass.graham.gower2009-12-2043-141/+63
| | | | git-svn-id: http://opkg.googlecode.com/svn/trunk@504 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
* Move args.c contents into src/opkg-cl.c.graham.gower2009-12-184-290/+1
| | | | git-svn-id: http://opkg.googlecode.com/svn/trunk@501 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
* Running a script does not change the state, modifying the state flags does.graham.gower2009-12-172-1/+1
| | | | git-svn-id: http://opkg.googlecode.com/svn/trunk@500 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
* Move libopkg.c out into the src dir. It shouldn't be part of the library.graham.gower2009-12-174-153/+1
| | | | git-svn-id: http://opkg.googlecode.com/svn/trunk@499 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
* Allow GLOB_NOMATCH, which also occurs if the leading dir does not exist.graham.gower2009-12-171-2/+14
| | | | | | 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
* Spacing.graham.gower2009-12-171-1/+1
| | | | git-svn-id: http://opkg.googlecode.com/svn/trunk@497 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
* Add a message callback function to the config struct for libopkg users.graham.gower2009-12-172-3/+18
| | | | git-svn-id: http://opkg.googlecode.com/svn/trunk@496 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
* Be slightly less verbose at INFO message level.graham.gower2009-12-171-3/+3
| | | | git-svn-id: http://opkg.googlecode.com/svn/trunk@495 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
* Print \n where needed.graham.gower2009-12-172-1/+2
| | | | git-svn-id: http://opkg.googlecode.com/svn/trunk@494 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
* Don't mask variable of wider scope.graham.gower2009-12-151-2/+1
| | | | git-svn-id: http://opkg.googlecode.com/svn/trunk@493 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
* Fix what I broke in r468.graham.gower2009-12-141-2/+2
| | | | git-svn-id: http://opkg.googlecode.com/svn/trunk@492 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
* Don't need \n for perrors.graham.gower2009-12-142-2/+2
| | | | git-svn-id: http://opkg.googlecode.com/svn/trunk@491 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
* Sort packages before listing them.graham.gower2009-12-141-0/+17
| | | | git-svn-id: http://opkg.googlecode.com/svn/trunk@490 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
* Allow use of opkg internals by libopkg users. Not intended to be permanent.graham.gower2009-12-112-3/+3
| | | | git-svn-id: http://opkg.googlecode.com/svn/trunk@488 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
* I've made substantial changes to these files. Add new copyright line.graham.gower2009-12-102-2/+4
| | | | git-svn-id: http://opkg.googlecode.com/svn/trunk@487 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
* Rewrite the error paths.graham.gower2009-12-101-145/+208
| | | | git-svn-id: http://opkg.googlecode.com/svn/trunk@486 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
* Not all ERROR messages are in paths that return as an error. Print them anyway.graham.gower2009-12-101-0/+3
| | | | git-svn-id: http://opkg.googlecode.com/svn/trunk@485 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
* Remove args_t and cleanup unused stuff.graham.gower2009-12-106-75/+47
| | | | git-svn-id: http://opkg.googlecode.com/svn/trunk@484 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
* Move loading of feeds and status files out of opkg_conf_init().graham.gower2009-12-107-118/+133
| | | | git-svn-id: http://opkg.googlecode.com/svn/trunk@483 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
* Print error messages instead of returning error codes.graham.gower2009-12-102-69/+60
| | | | git-svn-id: http://opkg.googlecode.com/svn/trunk@482 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
* indent -kr -i8 -psl -hnl -l80 opkg.cgraham.gower2009-12-101-712/+673
| | | | git-svn-id: http://opkg.googlecode.com/svn/trunk@480 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
* Remove struct _opkg_package_t.graham.gower2009-12-101-13/+0
| | | | git-svn-id: http://opkg.googlecode.com/svn/trunk@479 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
* Fix infinite loop created when I removed the masked variable i.graham.gower2009-12-091-3/+3
| | | | git-svn-id: http://opkg.googlecode.com/svn/trunk@477 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
* Remove opkg_package_t from libopkg_test.c. Also, use OFFLINE_ROOT env var.graham.gower2009-12-091-0/+3
| | | | git-svn-id: http://opkg.googlecode.com/svn/trunk@474 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
* Get rid of opkg_package_t.graham.gower2009-12-092-90/+22
| | | | | | | 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
* Fix lock_fd... How did I manage to break that?graham.gower2009-12-091-7/+5
| | | | | | Remove some redundant if statements too. git-svn-id: http://opkg.googlecode.com/svn/trunk@472 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
* Merge commit 'grg' into HEADgraham.gower2009-12-0849-2320/+1671
| | | | git-svn-id: http://opkg.googlecode.com/svn/trunk@471 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
* Remove -Werror from libopkg CFLAGS.graham.gower2009-12-031-1/+1
| | | | | | | | | | 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
* Fix truncation problem when reading in long lines. Found by Koen Kooi.graham.gower2009-12-021-3/+4
| | | | | | | | | | 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
* Free memory when there are unresolved dependencies.graham.gower2009-12-022-1/+6
| | | | git-svn-id: http://opkg.googlecode.com/svn/trunk@437 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
* patch for opkg_download.c compile abortpixdamix2009-12-011-10/+10
| | | | | | | | 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
* Fix typo in file name in order to fix distcheck.florian.boor2009-11-271-1/+1
| | | | git-svn-id: http://opkg.googlecode.com/svn/trunk@401 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
* Remove unused parameter from pkg_hash_fetch_best_installation_candidate().graham.gower2009-11-277-19/+20
| | | | git-svn-id: http://opkg.googlecode.com/svn/trunk@397 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
* Finding a provider which is has an incompatible arch should not preventgraham.gower2009-11-271-5/+14
| | | | | | the installation of others which are compatible. git-svn-id: http://opkg.googlecode.com/svn/trunk@396 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
* Remove enum opkg_error.graham.gower2009-11-268-134/+65
| | | | | | | | 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