Duncaen
b60054267b
lib/package_orphans.c: the argument is not UNUSED
2019-07-02 09:48:05 +02:00
Juan RP
5c828d8667
README.md: remove pcc note; it's in the build matrix now.
2019-06-27 18:12:33 +02:00
Juan RP
51bfc2a395
travis: add pcc/musl to the build matrix.
2019-06-27 18:09:26 +02:00
Juan RP
0677678387
Added LTO support and fix warnings (maybe-uninitialized).
2019-06-27 18:09:26 +02:00
Juan RP
bb96486b12
xbps-install: make sure to call xbps_end() before exiting.
2019-06-27 08:02:19 +02:00
Juan RP
db00ccc3b0
tests/xbps-remove/orphans: use -r root.
2019-06-27 07:57:13 +02:00
Johannes Brechtmann
44692f28d8
bin/xbps-install: update_pkg return EEXIST if package is up to date
...
makes 58509996aa
work for
xbps-install -u <pkg>
2019-06-27 07:54:11 +02:00
Duncaen
7b728f5ac0
bin/xbps-remove: fix skipping executing orphans transaction
2019-06-26 22:24:47 +02:00
Duncaen
cc1c984e9a
tests: add xbps-remove tests
2019-06-26 22:22:44 +02:00
Juan RP
c250bdce45
travis: disable tcc/glibc for now.
2019-06-26 16:00:56 +02:00
Juan RP
646115efdc
run-tests: set LIBRARY_PATH for tcc.
2019-06-26 15:55:47 +02:00
Juan RP
815754a0e9
configure: set -Wno-error later for tcc, to override -Werror.
2019-06-26 15:48:46 +02:00
Juan RP
899b8e7abb
Revert "travis: disable tcc again, seems to not obey -Wno-error."
...
This reverts commit 405f4b8379
.
2019-06-26 15:48:35 +02:00
Juan RP
405f4b8379
travis: disable tcc again, seems to not obey -Wno-error.
2019-06-26 15:27:12 +02:00
Juan RP
ab2445e722
configure: use -Wno-error for now with tcc.
2019-06-26 15:13:01 +02:00
Juan RP
ceab3c66b7
travis: tcc builds need binutils.
2019-06-26 15:03:32 +02:00
Juan RP
d6aebd45f0
fetch/http.c: fix tcc build failure.
...
fetch/http.c:1475: warning: function might return no value: 'parse_index'
The code uses abort() before returning anything; return a proper
return value instead.
2019-06-26 14:57:39 +02:00
Juan RP
3c98d7cc4c
README.md: tcc seems to be working ok now to run the testsuite.
2019-06-26 14:53:56 +02:00
Juan RP
2694654317
travis: add tcc glibc/musl to the build matrix.
2019-06-26 14:46:52 +02:00
Duncaen
3c07036c24
tests: new obsolete files test with modified files which should catch bug from previous commit
2019-06-26 13:23:18 +02:00
Duncaen
d72091a206
lib/transaction_files.c: fix returning error on hash mismatch
2019-06-26 13:07:16 +02:00
Juan RP
00cda75a63
Require libarchive>=3.3.3 due to zstd support.
2019-06-26 09:05:37 +02:00
Juan RP
f9477e08a7
tests/update_itself: improve test case on_any_op even more.
2019-06-25 23:13:17 +02:00
Juan RP
83aa486f6b
xbps-remove: skip trans if all pkgs were not found.
...
Restores behaviour with xbps<0.54.
2019-06-25 10:32:02 +02:00
Juan RP
a1a0407548
Bump to 0.57.
2019-06-24 11:28:11 +02:00
Juan RP
81d31ab764
NEWS: prepare 0.56.
2019-06-24 11:26:59 +02:00
Juan RP
e1dafe8f01
NEWS: sync
2019-06-24 10:56:01 +02:00
Duncaen
450426a83b
NEWS: add recently merged things
2019-06-23 12:37:14 +02:00
Duncaen
b39e341426
libxbps: don't check revdeps on removal of ignored packages
2019-06-23 12:23:17 +02:00
Duncaen
5fc340a838
tests: add test for removal of ignored package
2019-06-23 12:23:17 +02:00
Johannes Brechtmann
11e5190a36
lib/fetch: happy_eyeballs_connect check for waiting connections before
...
decrementing them, remove dead code
2019-06-23 12:14:21 +02:00
Duncaen
66f66ab7a1
Revert "xbps_array_foreach_cb_multi: fix incorrect array counter."
...
This reverts commit 08aa44602f
.
The element still has to be processed and ignored by one of the
threads, it is not the last entry this will make the actually last item
be ignored.
2019-06-23 11:14:37 +02:00
Duncaen
a4dd0221ac
lib/plist.c: fix xbps_array_foreach_cb_multi processing entries multiple times
...
the first thread to finish will start again from 0 (`reserved`) until
0+slicecount, next thread will then start from the end of the previous
thread which is already wrong, resulting in processing the first
slicecount*maxthreads entries twice.
The first slicecount*maxthreads entries are accounted by the thread
creation loop and `reserved` has to start at the first unaccounted index.
2019-06-23 11:14:37 +02:00
Juan RP
173c834fc8
lib/pkgdb.c: initialize pkgdb_fd.
...
otherwise xbps_pkgdb_unlock will always succeed.
2019-06-23 11:05:03 +02:00
Juan RP
41b2cec356
xbps-*: use xbps_pkgdb_update() correctly.
...
xbps-{alternatives,pkgdb,reconfigure}: xbps_pkgdb_update()
has been fixed to flush when told so, and we don't need
to update the in-memory copy because we are exiting.
2019-06-22 18:50:40 +02:00
Juan RP
97672bd79f
pkgdb: fix two issues in _update() and _release().
...
xbps_pkgdb_update: inverted condition that made it 'flush' when !flush.
xbps_pkgdb_release: xhp->pkgdb might be NULL, but unlock pkgdb anyway.
2019-06-22 18:47:13 +02:00
Duncaen
7e762cc357
lib/fetch.c: ignore EADDRNOTAVAIL and try next ip
2019-06-21 20:23:55 +02:00
Juan RP
58509996aa
xbps-install: skip trans if all pkgs are installed or uptodate.
...
Fixes an issue pointed out by @Johnnynator
2019-06-21 19:19:09 +02:00
Juan RP
2f1fd70a4e
xbps_transaction_prepare: initialize trans dict!
...
... otherwise it will always return ENXIO
2019-06-21 17:13:06 +02:00
Juan RP
1ceefe6f53
Bump to 0.56.
2019-06-21 16:32:38 +02:00
Juan RP
13172c22fc
xbps-install: only print num of downloaded pkgs with -D.
2019-06-21 16:26:08 +02:00
Juan RP
f1181c7415
NEWS: prepare for 0.55.
2019-06-21 16:14:35 +02:00
Juan RP
589a96a50e
xbps-install: with -D there are no pkgs to install/update/configure/remove.
2019-06-21 16:06:42 +02:00
Juan RP
fe943eb7d2
xbps-install(1): added -D, --download-only.
...
Added `-D, --download-only` flag to allow downloading
packages to the cache without attempting to install them.
Contributed by Toyam Cox via #9
Adapted to master by yours truly.
Close #9
2019-06-21 15:57:25 +02:00
Juan RP
4f717dc597
xbps-install(1): added -I, --ignore-file-conflicts.
...
If set it will continue with the transaction and will
just print what are the conflicting files without returning
EEXIST.
This is a temporary solution for void where there are still
some packages with conflicting files (qt5-host-tools vs qt5-tools-devel).
With input by @duncaen
2019-06-21 15:31:04 +02:00
Juan RP
9a72aaf577
xbps_transaction_files: report all conflicting files not just the first.
2019-06-21 13:48:47 +02:00
Juan RP
0f69773273
lib/transaction_ops.c: more debug.
2019-06-21 13:14:24 +02:00
Juan RP
3004085343
NEWS: mention latest bugfix.
2019-06-21 11:31:17 +02:00
Juan RP
288cff37f8
xbps-install: return 0 if pkg is already installed or uptodate.
...
Before this change xbps-install could return EEXIST
when the package is already installed, or already up-to-date.
Return 0 if such condition happens, and only return EEXIST
if there's a file conflict.
Close #51
2019-06-21 11:06:45 +02:00
Juan RP
c44e1f958d
lib/transaction_prepare.c: update for rename.
2019-06-21 10:48:17 +02:00