Commit Graph

3613 Commits

Author SHA1 Message Date
Juan RP
f85f6b5232
LICENSE.3RDPARTY: sync 2020-04-24 12:04:13 +02:00
Juan RP
be7d8cfaf1
Use shared LICENSE file for all xbps code. 2020-04-24 11:44:19 +02:00
Juan RP
530e79c7ee
Fix warnings detected by LTO. 2020-04-23 08:32:54 +02:00
Juan RP
e7c1f411ec
configure: bump to 0.60 2020-04-23 07:26:30 +02:00
Juan RP
c488b17ca9
xbps-query.1: new section: PACKAGE MODES.
- Fix mandoc(1) warnings.
- Document --list-repolock-pkgs.
2020-04-23 07:18:57 +02:00
Juan RP
3731f12c91
xbps-install.1: new section: PACKAGE MODES.
Fix mandoc(1) warnings as well.
2020-04-23 07:18:25 +02:00
Juan RP
7d8247ae56
Multiple changes to pkgs on hold mode.
- Added transaction stats for pkgs on hold.

- Always add packages on hold to the transaction dictionary,
  its type will be set to XBPS_TRANS_HOLD.

- Changed xbps_transaction_update_pkg() to have a new "force"
  bool argument to force an update with a pkg on hold.

- As discussed in #274 with @Duncaen the only way to update a
  pkg on hold is by using `-f`, i.e `xbps-install -f foo`.

Closes #265
Closes #274
2020-04-23 06:03:56 +02:00
Juan RP
6b6b394686
lib: keep pkgdb props on updates in the proper place.
Improve f906f5a83d
2020-04-22 12:20:38 +02:00
Duncan Overbruck
7a1f5424f6
tests: add test case for explicit updates with repolock
Introduced from discussion in #273.
2020-04-22 12:18:09 +02:00
Juan RP
f906f5a83d xbps_register_pkg: keep stored props in pkgdb on updates.
I noticed that while updating a pkg that is on hold
or in repolock mode, does not keep those properties.

Always set those props in the new pkg dictionary to respect
this behaviour. If there's a pkg on hold and you update it,
you want to keep it in this state unless you tell it to change.

Added new test case to verify.
2020-04-22 12:00:26 +02:00
Juan RP
9b695433a0
bin: sync usage and keep it consistent in all utils. 2020-04-20 21:25:14 +02:00
Juan RP
d5251a9c23
xbps_init: fix typo in debug output.
For #264
2020-04-20 20:20:29 +02:00
Juan RP
07d8735db6
Makefile: install licenses. 2020-04-20 19:28:59 +02:00
Juan RP
ed3f7b99af
LICENSE.3RDPARTY: mention lib/compat/vasprintf.c. 2020-04-20 19:20:08 +02:00
Juan RP
3453464ba6
LICENSE.3RDPARTY: mention lib/util_path.c and xbps-fbulk. 2020-04-20 19:13:00 +02:00
Juan RP
0b62ba8592
xbps-fbulk: fix usage. 2020-04-20 18:55:44 +02:00
Juan RP
1f4cfc377b
xbps-fbulk: misc changes (v3).
- Re-add original behaviour now I fixed the real issue for missing
  logs. Keep the build/run pipeline full as soon as possible.
- Added -s, --system. System build mode. To only build pkgs that
  are installed manually in your system.
- Added long options; sync usage.
- Restrict max jobs to ncores; there are issues with shared data,
  and until they are resolved this is the only way to make it work
  reliably.
2020-04-20 18:50:11 +02:00
Juan RP
a1d66032bd
xbps-uchroot: support long options; update usage. 2020-04-20 15:12:44 +02:00
Juan RP
9328afb397
AUTHORS: update. 2020-04-20 15:08:52 +02:00
Juan RP
82c0f5a2da
LICENSE.3RDPARTY: include uthash. 2020-04-20 15:02:32 +02:00
Juan RP
213ce1a72b
xbps-rindex/remove-obsoletes.c: fix CID 284947 (Resource leak). 2020-04-20 10:34:08 +02:00
Juan RP
e155ba6d20
lib/package_alternatives.c: revert back to orig order.
my mistake, I somehow confused it.
2020-04-20 10:32:14 +02:00
Juan RP
35ae128826
lib/fetch: fix CID 284966 in a different way.
Hopefully this fixes it for real.
2020-04-20 10:31:13 +02:00
Juan RP
8663c3bd75
lib/fetch/common.c: fix CID 284959 (NULL returns).
Also fix previous CID.
2020-04-19 11:53:28 +02:00
Juan RP
359721baa6
lib/fetch/common.c: fix CID 284966 (Resource leak). 2020-04-19 11:43:54 +02:00
Juan RP
7b623783c8
lib/package_alternatives.c: fix CID 284970 (Resource leak).
Also fix calloc args order.
2020-04-19 11:38:09 +02:00
Juan RP
c5904cc6ef
lib/conf.c: fix CID 284952 (Identical branches). 2020-04-19 11:22:17 +02:00
Juan RP
96acc6d8ef
lib/portableproplib/prop_object.c: fix CID 284969 (Double free). 2020-04-19 11:17:39 +02:00
Juan RP
83d87ce05b
lib/transaction_files.c: fix CID 284958 (Resource leak). 2020-04-19 11:17:02 +02:00
Juan RP
debfcf1273
Use xbps_repo_release() where applicable. 2020-04-19 11:09:05 +02:00
Duncan Overbruck
cb580a5c1a bin/xbps-query: use puts instead of printf("%s\n", ...) 2020-04-19 11:05:00 +02:00
Duncan Overbruck
910bb5674c bin/xbps-query: simplify list printing (with truncation) 2020-04-19 11:05:00 +02:00
Duncan Overbruck
a2c7f5fc29 bin/xbps-query: simplify search result printing (with truncation)
This should also fix a useless error from lgtm
2020-04-19 11:05:00 +02:00
Duncan Overbruck
df5f2a9378
README.md: add coverity.com badge 2020-04-18 16:13:57 +02:00
Duncan Overbruck
8d3063b5d2
.github/workflows/coverity-scan.yml: do scheduled coverity scan 2020-04-18 15:45:33 +02:00
Duncan Overbruck
c9837b9a9e
.github/workflows/coverity-scan.yml: fix tar 2020-04-18 15:39:00 +02:00
Duncan Overbruck
bed16c48db
.github/workflows/coverity-scan.yml: ignore lock files 2020-04-18 15:29:17 +02:00
Duncan Overbruck
a1f54ea4b6
.github/workflows/coverity-scan.yml: enable tests 2020-04-18 15:23:46 +02:00
Duncan Overbruck
2bc25a3369
.github/workflows/coverity-scan.yml: simplify 2020-04-18 15:17:10 +02:00
Duncan Overbruck
ef4937ecb7
.github/workflows/coverity-scan.yml: fix syntax 2020-04-18 15:10:20 +02:00
Duncan Overbruck
cf59b4a3b1
.github/workflows/coverity-scan.yml: use voidlinux/voidlinux docker container to build 2020-04-18 15:08:38 +02:00
Duncan Overbruck
65cd539f2d
.github/workflows/coverity-scan.yml: once again I'm asking you to do a coverity scan 2020-04-18 14:55:15 +02:00
Duncan Overbruck
13babcb5c0
.github/workflows/coverity-scan.yml: fix url again 2020-04-18 14:49:27 +02:00
Duncan Overbruck
6ff38bc320
.github/workflows/coverity-scan.yml: fix coverity scan tool urls 2020-04-18 14:47:38 +02:00
Duncan Overbruck
2bb6fae5d3
.github/workflows/coverity-scan.yml: fix openssl dependency 2020-04-18 14:44:28 +02:00
Duncan Overbruck
284f41c16c
.github/workflows/coverity-scan.yml: do it on push for now 2020-04-18 14:42:16 +02:00
Duncan Overbruck
537ef657d2
add github action for coverity scan 2020-04-18 14:36:35 +02:00
Juan RP
db1766986c
configure: accept any openssl version. 2020-04-16 14:57:18 +02:00
Juan RP
3164e9c7ce
README.md: openssl >= 1.1 has been tested. 2020-04-16 14:46:30 +02:00
Juan RP
4990a2dd91 lib/Makefile: bump LIBXBPS_MICRO. 2020-04-14 20:27:54 +02:00