aboutsummaryrefslogtreecommitdiffstats
path: root/libopkg/opkg_install.h
AgeCommit message (Collapse)Author
2020-01-17opkg_install_pkg: allow upgrades between packages with different namesAlejandro del Castillo
Required to be able to process OBSOLETE operations as upgrades. Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com>
2019-10-25add SPDX License identifierYann CARDAILLAC
Signed-off-by: Yann CARDAILLAC <yann.cardaillac@smile.fr> Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com>
2018-01-29opkg_install_pkg: remove unused parameter from_upgradeAlejandro del Castillo
Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com>
2016-02-10libopkg: move internal solver install related functions to a new fileAlejandro del Castillo
In preparation for internal solver split from install/upgrade functions. Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com> Reviewed-by: Josh Cartwright <joshc@ni.com>
2015-12-02libopkg: replace --enable-solver option with --with-<solver>Alejandro del Castillo
Autoconf recommends using --with-package when there is a choice to use an external package vs an internal implementation. Default is the internal solver, libsolv backed is enabled by passing --with-libsolv to configure. Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com> Reviewed-by: Josh Cartwright <joshc@ni.com>
2015-08-20Add changes so adhoc solver code is not built when external solver enabledEric Yu
Make changes to libopkg/Makefile.am, opkg_cmd.c, opkg_install.c, opkg_remove.c, pkg_depends.c, opkg_install.h, opkg_remove.h, and pkg_depends.h, so that opkg's adhoc solving functions are not built when an external solver is being used to solve package dependencies. Also add check to prevent deprecated API from being built with an external solver enabled, as /libopkg/opkg.c will fail to build. Signed-off-by: Eric Yu <eric.yu@ni.com> Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com>
2014-12-15libopkg: Tidy up reformatted headersPaul Barker
During the tidy up, includes have been moved outside of the 'extern "C" {}' construct where necessary. Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
2014-12-15Initial reformat with 'indent'Paul Barker
For each file, the command executed was: indent -linux -i4 -nut -sc -bbo -nhnl $f This is the first step in improving the code formatting and further work is still required. 'indent' is confused by the 'extern "c" {}' wrapping in the header files and gets the indentation wrong. It also produces sub-optimal formatting for some long lines. Each file will be reviewed by hand after this commit. Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
2014-08-01Merge branch 'opkg-0.2.x'Paul Barker
Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
2014-07-27opkg_install_multiple_by_name: New functionPaul Barker
This function installs multiple packages by name, preparing all packages for installation before any package is installed. It should therefore ensure correct dependency resolution across a group of packages. Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
2014-07-07opkg_install, opkg_upgrade: Fix c++ wrapping in headersPaul Barker
The 'extern "C" {}' wrapping should not surround the inclusion of other header files as it may cause confusion when compiled as C++. The unnecessary inclusion of opkg_conf.h in opkg_install.h is also removed and an inclusion of pkg.h is added to opkg_upgrade.h as necessary. Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
2014-05-30Add vim modelines to all .c and .h filesPaul Barker
This also corrects the existing vim modelines to match the desired format. Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
2013-12-17libopkg: cleanup inside the public header filesCarsten Schoenert
No functional changes! Just a cleanup like whitespaces, blank lines, tabs and reformating lines longer 76 characters. Also adding the missed comments at the closing bracket from the #ifndef HEADER_FOO_H ... #endif loop. This helps to identify the associated preprocessor elements like theay already exits in some files. Signed-off-by: Carsten Schoenert <c.schoenert@gmail.com> Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
2013-12-17libopkg: ensure symbol name mangling for C++Carsten Schoenert
Users who use C++ code for theirs application have always to include external C functions with a 'extern "C" { }' assignment. We can take that need from the user by putting thees assignments into the public header files. Signed-off-by: Carsten Schoenert <c.schoenert@gmail.com> Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
2009-12-09Merge commit 'grg' into HEADgraham.gower
git-svn-id: http://opkg.googlecode.com/svn/trunk@471 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
2009-11-27Remove enum opkg_error.graham.gower
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
2009-11-25Remove unused functions. Shuffle things around and remove forward declarations.graham.gower
git-svn-id: http://opkg.googlecode.com/svn/trunk@369 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
2008-12-15opkg: consolidate error enums and add an error for when no package matchesticktock35
current architecture git-svn-id: http://opkg.googlecode.com/svn/trunk@128 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
2008-12-15opkg: improve opkg_install error reporting and include a check to verify ↵ticktock35
repository signature during install git-svn-id: http://opkg.googlecode.com/svn/trunk@123 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
2008-12-15opkg: 's/itsy/opkg/'ticktock35
git-svn-id: http://opkg.googlecode.com/svn/trunk@67 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
2008-12-15opkg: remove opkg.h in preperation for new APIticktock35
git-svn-id: http://opkg.googlecode.com/svn/trunk@65 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
2008-12-15opkg: re-arrange source code into sub-directoriesticktock35
git-svn-id: http://opkg.googlecode.com/svn/trunk@33 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358