Juan RP
62b21a4f93
xbps-install/question.c: char is not enough for fgetc, use int (HI GOTTOX)
2015-03-21 09:45:29 +01:00
Juan RP
efd24456ce
Post release bump.
2015-03-21 09:32:07 +01:00
Juan RP
ba84eec50f
NEWS: prepare 0.44.1.
2015-03-21 09:30:58 +01:00
Juan RP
dc47dfd593
xbps_get_pkg_fulldeptree: detect pkgs depending on itself via virtual pkgs.
...
Reported by Duncan Overbrook.
Update NEWS with recent changes.
2015-03-20 08:03:06 +01:00
Enno Boland
1eeaa99438
utils: test for EOF on error, not for \0.
2015-03-14 00:41:39 +01:00
Enno Boland
9dfed6fc0c
add xbps-uunshare to .gitignore
2015-03-14 00:38:33 +01:00
Enno Boland
507a9e338f
utils: small code cleanup.
2015-03-14 00:38:33 +01:00
Juan RP
52dae50075
xbps-uunshare: replace clone/exec with unshare/exec cmd.
...
There's no reason to clone and run cmd in the child, replace the
execution environment with cmd directly to avoid the child process.
2015-03-13 21:14:28 +01:00
Juan RP
519ea4001c
xbps-uunshare: fix typo in an error msg (thanks uggedal).
2015-03-12 19:05:05 +01:00
Juan RP
f9b6dd9d2d
proplib: anonymous mappings need MAP_ANON.
...
Somehow I removed this accidentally in a previous change... sigh.
2015-03-11 17:06:45 +01:00
Juan RP
301b6d220e
xbps-uunshare: fix previous ( 15977278
).
2015-03-09 12:45:32 +01:00
Juan RP
1597727814
xbps-uunshare: do not fail if /proc/self/setgroups does not exist.
...
3.16 supports user_namespaces(7) but does not have /proc/self/setgroups.
Found by @cheneukirchen.
2015-03-09 12:34:57 +01:00
Juan RP
be363d93f5
configure: post-release bump.
2015-03-08 10:22:33 +01:00
Juan RP
345183c13e
NEWS: mention some items for 0.44.1.
2015-03-08 10:22:15 +01:00
Juan RP
25f7228920
xbps-reconfigure: add -i/--ignore to usage; thanks @chneukirchen.
2015-03-08 10:22:15 +01:00
Juan RP
ac93845378
Merge pull request #84 from chneukirchen/master
...
updated completions
2015-03-07 21:25:14 +01:00
Christian Neukirchen
916f8bea26
_xbps_src: update zsh completion.
2015-03-07 14:05:36 +01:00
Christian Neukirchen
1ac25a53c4
_xbps: update zsh completion.
2015-03-07 14:00:10 +01:00
Juan RP
acb00d52e4
xbps-checkvers(8): fix manually added packages as arguments.
...
Regression introduced in the 0.44 changes.
2015-03-07 09:11:12 +01:00
Juan RP
95d650bdb1
lib/transaction_shlibs.c: add a printf to see what's going on.
2015-03-07 08:02:39 +01:00
Juan RP
38fb0aabe5
NEWS: prepare 0.44.
2015-03-06 09:04:02 +01:00
Juan RP
77e83d4b17
xbps-uunshare: for compat with uchroot, use the uid/gid of the calling process.
...
... rather than setting this up for uid/gid 0.
2015-03-06 07:39:31 +01:00
Juan RP
441f147f05
Fix reinstallation of pkgs in repolock mode.
...
At the time we've been searching for the pkg in a repo, no repos
were registered resulting in EINVAL. While here, if there's no
declared repos return ENOENT instead.
2015-03-05 21:23:58 +01:00
Juan RP
3da2c3fdda
xbps-uunshare: silence a clang warning.
2015-03-05 19:24:33 +01:00
Juan RP
26944cf6be
xbps-uunshare: chdir to the correct dir for bind mounts.
2015-03-05 19:06:39 +01:00
Juan RP
a1d1b3e480
bin/Makefile: restrict xbps-uunshare(8) only on linux.
2015-03-05 18:46:01 +01:00
Juan RP
58e6d71d24
New utility: xbps-uunshare(8) - like xbps-uchroot(8) with user_namespaces(7).
2015-03-05 18:44:20 +01:00
Juan RP
927254c43e
xbps-rindex(8): fix -s short option (omitted in shortopts).
2015-03-03 16:10:03 +01:00
Juan RP
7bff8aa350
tests/update_repolock: fix repo order and use readlink -f to fix travis-ci.
2015-03-03 12:57:49 +01:00
Juan RP
4922c808f4
Implemented feature #77 (Add package repository locked mode)
...
Close #77
2015-03-03 12:11:28 +01:00
Juan RP
db21c045d2
xbps-create(8): use fdatasync() rather than fsync().
...
The latter could be too expensive, and we only care for the data to be written
to the binary package because a bit later we rename() the temporary file,
which will ensure a data flush to disk.
2015-02-27 11:04:25 +01:00
Juan RP
04da57e4f9
xbps-pkgdb: when checking pkg files, ignore mtime with mutable files.
2015-02-27 10:38:50 +01:00
Juan RP
976718417b
libxbps: remove "skip-obsoletes" handling; unnecessary with the mtime checks.
2015-02-26 19:51:03 +01:00
Juan RP
b6b446d32e
libxbps: properly detect obsolete files with files being between pkgs.
...
120 test cases now successfully pass, and all known issues about
pkg updates that move files between them should be gone (hopefully).
2015-02-26 19:37:46 +01:00
Juan RP
8de52caa2f
tests: two more test cases to verify moving files between pkgs.
...
There are now 2 broken test cases thanks to the fixed xbps-pkgdb(8).
2015-02-26 12:02:06 +01:00
Juan RP
c712c99ced
xbps-pkgdb: exit with error if any test fails.
2015-02-26 12:01:20 +01:00
Juan RP
7c52471ff6
tests: add test case to verify pkg file timestamps are updated correctly.
2015-02-26 10:40:15 +01:00
Juan RP
cbe493858c
libxbps: apply file timestamps to unmodified files on-disk while unpacking.
2015-02-25 11:10:18 +01:00
Juan RP
b133b9023c
lib/package_unpack.c: wrap some long lines and fix an obvious error.
2015-02-24 09:34:39 +01:00
Juan RP
725ef2472d
xbps-uhelper: sync error messages with reality.
2015-02-23 16:56:47 +01:00
Juan RP
b909e8edc3
xbps-pkgdb: fix use-after-free introduced in 3855d2e
.
2015-02-23 08:26:20 +01:00
Juan RP
3855d2e2fb
xbps-pkgdb(8): check pkg file mtime (iff the obj is available).
2015-02-22 18:45:47 +01:00
Juan RP
2cae0cba01
xbps-create(8): store file mtime in metadata for upcoming changes.
2015-02-22 18:20:32 +01:00
Juan RP
ae8ce64542
Restore pkg file timestamps while unpacking as regular user.
...
Requested by @dominikh.
2015-02-21 16:52:27 +01:00
Juan RP
3692ecb537
xbps-query/search: fix previous.
2015-02-20 11:07:35 +01:00
Juan RP
341e8a10ae
xbps-query/search: minor optimizations.
2015-02-20 11:01:18 +01:00
Juan RP
7e21f1ee1a
xbps_symlink_target: rename var to avoid shadowing a global var.
2015-02-19 11:44:10 +01:00
Juan RP
9083191e4b
xbps_symlink_target: double free in rootdir == '/' case.
2015-02-19 11:39:59 +01:00
Juan RP
6d65e76f91
xbps_symlink_target: fix a memleak.
2015-02-19 11:36:09 +01:00
Juan RP
a05e039cce
Revert "Stop converting relative symlinks to absolute."
...
This reverts commit 9ae3638429
.
This change is ok, but cannot be used right now because all existing
binpkgs were created with an old xbps-create(8).
2015-02-19 11:11:58 +01:00