portage.git
12 years agoRemove extended package set configuration docs. v2.1.11.13
Zac Medico [Fri, 3 Jun 2011 12:28:16 +0000 (05:28 -0700)]
Remove extended package set configuration docs.

Extended package sets configuration is disabled in the stable branch.

12 years agoRemove FEATURES=preserve-libs config/docs.
Zac Medico [Fri, 3 Jun 2011 12:15:50 +0000 (05:15 -0700)]
Remove FEATURES=preserve-libs config/docs.

Support for FEATURES=preserve-libs is disabled in the stable branch.

12 years agoportage.const: toggle constants for stable branch
Zac Medico [Sat, 2 Jun 2012 07:18:25 +0000 (00:18 -0700)]
portage.const: toggle constants for stable branch

12 years agoemaint cleanconfmem: fix writedict breakage v2.2.0_alpha124
Zac Medico [Sun, 2 Sep 2012 23:46:54 +0000 (16:46 -0700)]
emaint cleanconfmem: fix writedict breakage

Use grabdict so the values are stored as lists like writedict expects.

12 years agoRename _slot_abi.py to _slot_operator.py.
Zac Medico [Sun, 2 Sep 2012 23:03:14 +0000 (16:03 -0700)]
Rename _slot_abi.py to _slot_operator.py.

12 years agoQuote ${EAPI} more.
Zac Medico [Sun, 2 Sep 2012 22:56:46 +0000 (15:56 -0700)]
Quote ${EAPI} more.

This will avoid a potential syntax error in save-ebuild-env.sh if a
saved environment containing corrupt EAPI is sourced.

12 years agoDateSet: only allow one format option in config
Zac Medico [Sun, 2 Sep 2012 22:31:20 +0000 (15:31 -0700)]
DateSet: only allow one format option in config

12 years agoebuild-helpers/bsd/sed: whitespace + quoting
Zac Medico [Sun, 2 Sep 2012 22:13:24 +0000 (15:13 -0700)]
ebuild-helpers/bsd/sed: whitespace + quoting

12 years agoUnconditionally insert our pym dir in sys.path.
Zac Medico [Sun, 2 Sep 2012 21:56:22 +0000 (14:56 -0700)]
Unconditionally insert our pym dir in sys.path.

This is especially necessary when running in prefix mode, since
sys.path may contain the path for a different version of portage.

12 years agoemaint cleanconfmem: handle ROOT
Zac Medico [Sun, 2 Sep 2012 20:33:06 +0000 (13:33 -0700)]
emaint cleanconfmem: handle ROOT

12 years agoAdd DateSet, bug #433704.
Martin Väth [Sun, 2 Sep 2012 20:18:20 +0000 (13:18 -0700)]
Add DateSet, bug #433704.

Allow sets of packages installed before or after a specific date.
The date may be specified explicitly (in dateformat which defaults to "%x %X")
or seconds since Epoch, or implicitly as an installation date or a filestamp.

For example, the following sets can be specified in /etc/portage/sets.conf:

[date1]
class = portage.sets.dbapi.DateSet
mode = older
date = 08/31/12 10:00:00
dateformat = %%x %%X

[date2]
class = portage.sets.dbapi.DateSet
mode = newer
seconds = 1346400000

[date3]
class = portage.sets.dbapi.DateSet
package = sys-devel/gcc:4.7

[date4]
class = portage.sets.dbapi.DateSet
filestamp = /usr/bin/gcc

12 years agoemaint cleanconfmem: use writedict
Zac Medico [Sun, 2 Sep 2012 20:04:38 +0000 (13:04 -0700)]
emaint cleanconfmem: use writedict

12 years agoemaint cleanconfmem: ignore md5, bug #433694
Zac Medico [Sun, 2 Sep 2012 19:46:46 +0000 (12:46 -0700)]
emaint cleanconfmem: ignore md5, bug #433694

12 years agovalidate_desktop_entry: handle emacs.desktop
Zac Medico [Sun, 2 Sep 2012 19:31:23 +0000 (12:31 -0700)]
validate_desktop_entry: handle emacs.desktop

See <https://bugs.freedesktop.org/show_bug.cgi?id=35844#c6>.

12 years agoEnable EAPI 5_pre1 for testing.
Zac Medico [Sun, 2 Sep 2012 02:37:56 +0000 (19:37 -0700)]
Enable EAPI 5_pre1 for testing.

12 years agoDocument EAPI 5_pre1.
Zac Medico [Sun, 2 Sep 2012 02:37:15 +0000 (19:37 -0700)]
Document EAPI 5_pre1.

12 years agoapply_user_patches: die if EBUILD_PHASE is wrong
Zac Medico [Sun, 2 Sep 2012 02:24:46 +0000 (19:24 -0700)]
apply_user_patches: die if EBUILD_PHASE is wrong

12 years agoglsa.py: python3: ResourceWarning: unclosed file
Zac Medico [Sun, 2 Sep 2012 00:42:11 +0000 (17:42 -0700)]
glsa.py: python3: ResourceWarning: unclosed file

12 years agoebuild-helpers/sed: move to bsd subdirectory
Zac Medico [Sat, 1 Sep 2012 23:08:16 +0000 (16:08 -0700)]
ebuild-helpers/sed: move to bsd subdirectory

This helps to prevent inappropriate use of the sed wrapper on GNU
systems, which commonly occurs when users install portage manually
during recovery situations.

12 years agoebuild-helpers/sed: use -ef to check recursion
Zac Medico [Sat, 1 Sep 2012 22:51:25 +0000 (15:51 -0700)]
ebuild-helpers/sed: use -ef to check recursion

12 years agoEliminate bin/ebuild-helpers/4 directory.
Zac Medico [Sat, 1 Sep 2012 22:42:45 +0000 (15:42 -0700)]
Eliminate bin/ebuild-helpers/4 directory.

Instead, just use conditionals where appropriate inside
bin/ebuild-helpers/* scripts.

12 years ago_prepare_self_update: ignore installed version
Zac Medico [Sat, 1 Sep 2012 20:51:18 +0000 (13:51 -0700)]
_prepare_self_update: ignore installed version

Now portage will unconditionally make a temporary copy of itself during
updates. This is safer, since it provides maximum protection against
any possible incompatibilities. For example, suppose that the ebuild
has been updated to change the location of installed files (such as
libdir change) without a revision bump.

12 years agoEnable @module-rebuild for 2.1 branch.
Zac Medico [Sat, 1 Sep 2012 04:29:24 +0000 (21:29 -0700)]
Enable @module-rebuild for 2.1 branch.

12 years agoportageq: clarify meaning of uses_root
Gregory M. Turner [Fri, 31 Aug 2012 16:34:02 +0000 (09:34 -0700)]
portageq: clarify meaning of uses_root

o s/uses_root/uses_eroot/g -- This name was chosen
  before its meaning was changed; update it to reflect its purporse.

o Fix a left-over "<root>" arg-doc that never got updated to "<eroot>"

o If a provided eroot argument was shorter than the ${EPREFIX}, portageq
  was truncating it down to nothing and activating relative root,
  which means this became equivalent to an explicit argument of
  "${PWD}/${EPREFIX}/".  This is obviously wrong; and a simple case
  of failing to sanity-check inputs from an interface that changed in a
  backward-incompatible way.

  There's no provision in portageq to query EROOT's that don't end in
  ${EPREFIX}; so if the user makes such a request, instead of doing
  something pathological, dump a helpful error message and bail with
  a nonzero exit code.

Signed-off-by: Gregory M. Turner <gmturner007@ameritech.net>
12 years agoEAPI 5: doheader and newheader helper functions
Ulrich Müller [Fri, 31 Aug 2012 15:10:16 +0000 (17:10 +0200)]
EAPI 5: doheader and newheader helper functions

See bug #21310.

12 years agoUpdate years in header.
Ulrich Müller [Fri, 31 Aug 2012 14:55:16 +0000 (16:55 +0200)]
Update years in header.

12 years agoFix usex for EAPI 4-python|4-slot-abi.
Zac Medico [Fri, 31 Aug 2012 14:51:49 +0000 (07:51 -0700)]
Fix usex for EAPI 4-python|4-slot-abi.

12 years agoEAPI 5: usex helper function
Ulrich Müller [Fri, 31 Aug 2012 14:24:09 +0000 (16:24 +0200)]
EAPI 5: usex helper function

See bug #382963.

12 years agoEAPI 5: --host-root option for best/has_version
Zac Medico [Fri, 31 Aug 2012 01:49:10 +0000 (18:49 -0700)]
EAPI 5: --host-root option for best/has_version

See bug #401239 and the PMS patch:
http://git.overlays.gentoo.org/gitweb/?p=proj/pms.git;a=commit;h=25fb5fca6674215ea8aaa3d0ec3dd3df451eec07

12 years agoconfig.setcpv: fix early ret for IUSE_EFFECTIVE
Zac Medico [Thu, 30 Aug 2012 16:43:09 +0000 (09:43 -0700)]
config.setcpv: fix early ret for IUSE_EFFECTIVE

12 years agodyn_prepare: init state for apply_user_patches
Zac Medico [Thu, 30 Aug 2012 16:33:04 +0000 (09:33 -0700)]
dyn_prepare: init state for apply_user_patches

12 years agoRemove FEATURES=parse-eapi-ebuild-head
Zac Medico [Thu, 30 Aug 2012 05:54:51 +0000 (22:54 -0700)]
Remove FEATURES=parse-eapi-ebuild-head

It's already been enabled by default in stable portage for awhile now,
so it should be safe to enable it unconditionally. The PMS eapi-5
branch also says that it's mandatory to parse the EAPI:

http://git.overlays.gentoo.org/gitweb/?p=proj/pms.git;a=commit;h=91d1e1e39b034bde7e5b981a5616a127135f37fa

12 years agoEAPI 5: econf --disable-silent-rules
Zac Medico [Thu, 30 Aug 2012 05:25:33 +0000 (22:25 -0700)]
EAPI 5: econf --disable-silent-rules

See bug #379497 and the PMS patch:
http://git.overlays.gentoo.org/gitweb/?p=proj/pms.git;a=commit;h=b7750e67b4772c1064543defb7df6a556f09807b

12 years agoEAPI 5: User patches (no-op dummy stub for now)
Zac Medico [Thu, 30 Aug 2012 05:04:42 +0000 (22:04 -0700)]
EAPI 5: User patches (no-op dummy stub for now)

A real apply_user_patches implementation will be a bit more work, so
for now we'll just implement the minimum amount necessary to satisfy
the spec:
http://git.overlays.gentoo.org/gitweb/?p=proj/pms.git;a=commit;h=a8bf7862967cce36b7f1b408934a774126da2538

12 years agoEAPI 5: enable slot-operator-deps
Zac Medico [Wed, 29 Aug 2012 20:29:37 +0000 (13:29 -0700)]
EAPI 5: enable slot-operator-deps

12 years agoRename slot-abi stuff to refer to slot-operator.
Zac Medico [Wed, 29 Aug 2012 20:23:22 +0000 (13:23 -0700)]
Rename slot-abi stuff to refer to slot-operator.

This makes it consistent with the language in the PMS eapi-5 branch:
http://git.overlays.gentoo.org/gitweb/?p=proj/pms.git;a=commit;h=5d6749ac9e5ddc5b1daaad7737b65fa81c6ece47

12 years agoEAPI 5: src_test support for parallel tests
Zac Medico [Wed, 29 Aug 2012 16:43:32 +0000 (09:43 -0700)]
EAPI 5: src_test support for parallel tests

See bug #363005 and the PMS patch:
http://git.overlays.gentoo.org/gitweb/?p=proj/pms.git;a=commit;h=3ec4b3c22582a8ec206bce1e93bab377d7b264b5

12 years agoEAPI 5: EBUILD_PHASE_FUNC variable
Zac Medico [Wed, 29 Aug 2012 16:26:38 +0000 (09:26 -0700)]
EAPI 5: EBUILD_PHASE_FUNC variable

See bug #390765 and the PMS patch:
http://git.overlays.gentoo.org/gitweb/?p=proj/pms.git;a=commit;h=76ddca560da42fd968c53a2a0c38a6ac840a7ad4

12 years agoBlacklist IUSE_EFFECTIVE from external env.
Zac Medico [Wed, 29 Aug 2012 15:51:19 +0000 (08:51 -0700)]
Blacklist IUSE_EFFECTIVE from external env.

12 years agoEAPI 5: Profile IUSE injection
Zac Medico [Wed, 29 Aug 2012 07:38:12 +0000 (00:38 -0700)]
EAPI 5: Profile IUSE injection

See bug #176467 and the PMS patch:
http://git.overlays.gentoo.org/gitweb/?p=proj/pms.git;a=commit;h=d9040ab3482af5f790368bac5d053bf1cd760ba8

12 years agoPackage: skip REQUIRED_USE validation if built
Zac Medico [Tue, 28 Aug 2012 03:19:58 +0000 (20:19 -0700)]
Package: skip REQUIRED_USE validation if built

12 years agoPass eapi to check_required_use more.
Zac Medico [Mon, 27 Aug 2012 22:16:50 +0000 (15:16 -0700)]
Pass eapi to check_required_use more.

12 years agoEAPI 5: REQUIRED_USE at-most-one-of ?? operator
Zac Medico [Mon, 27 Aug 2012 22:13:29 +0000 (15:13 -0700)]
EAPI 5: REQUIRED_USE at-most-one-of ?? operator

See bug #354219 and the PMS patch:
http://git.overlays.gentoo.org/gitweb/?p=proj/pms.git;a=commit;h=1c2dff2df2305aff88a734e3a2716de1bb69f3b6

12 years ago_get_eapi_attrs: handle unsupported eapi as None v2.2.0_alpha123
Zac Medico [Sun, 26 Aug 2012 22:31:01 +0000 (15:31 -0700)]
_get_eapi_attrs: handle unsupported eapi as None

12 years agovalidate_desktop_entry: filter more kde noise
Zac Medico [Sun, 26 Aug 2012 21:45:05 +0000 (14:45 -0700)]
validate_desktop_entry: filter more kde noise

This will fix bug #432862.

12 years agoWhitespace.
Ulrich Müller [Sat, 25 Aug 2012 21:21:12 +0000 (23:21 +0200)]
Whitespace.

12 years agoKeywordsManager: fix isStable comment
Zac Medico [Sat, 25 Aug 2012 20:40:10 +0000 (13:40 -0700)]
KeywordsManager: fix isStable comment

12 years agoEAPI 5: new* commands can read from stdin, bug 263565.
Ulrich Müller [Sat, 25 Aug 2012 20:00:51 +0000 (13:00 -0700)]
EAPI 5: new* commands can read from stdin, bug 263565.

12 years agonew*: symlink to generic newins implementation
Zac Medico [Sat, 25 Aug 2012 19:45:21 +0000 (12:45 -0700)]
new*: symlink to generic newins implementation

12 years agonewins: become generic so new* can be symlinks
Zac Medico [Sat, 25 Aug 2012 19:42:28 +0000 (12:42 -0700)]
newins: become generic so new* can be symlinks

12 years agoEAPI 5 stable use.mask/force for bug #431078
Zac Medico [Sat, 25 Aug 2012 04:11:04 +0000 (21:11 -0700)]
EAPI 5 stable use.mask/force for bug #431078

12 years ago_pkg_str: pass in config + metadata with KEYWORDS
Zac Medico [Sat, 25 Aug 2012 04:08:47 +0000 (21:08 -0700)]
_pkg_str: pass in config + metadata with KEYWORDS

This will be needed in order to support stable use.mask/force for
bug #431078.

12 years agoprepstrip: avoid debugedit/strip interference
Zac Medico [Thu, 23 Aug 2012 22:29:35 +0000 (15:29 -0700)]
prepstrip: avoid debugedit/strip interference

This will fix bug #421099.

12 years agoconfig: _eapi_cache.clear() after setcpv
Zac Medico [Thu, 23 Aug 2012 17:10:38 +0000 (10:10 -0700)]
config: _eapi_cache.clear() after setcpv

12 years agoread_corresponding_eapi_file: cache results
Zac Medico [Thu, 23 Aug 2012 16:55:19 +0000 (09:55 -0700)]
read_corresponding_eapi_file: cache results

12 years agoOptimize sys.std* flush code. v2.2.0_alpha122
Zac Medico [Wed, 22 Aug 2012 21:12:31 +0000 (14:12 -0700)]
Optimize sys.std* flush code.

12 years agomake.conf.5: s/Hash functions/Hash function/
Zac Medico [Wed, 22 Aug 2012 20:32:28 +0000 (13:32 -0700)]
make.conf.5: s/Hash functions/Hash function/

12 years agoUse sys.__std*.fileno() in case of overrides.
Zac Medico [Wed, 22 Aug 2012 19:46:04 +0000 (12:46 -0700)]
Use sys.__std*.fileno() in case of overrides.

This fixes AttributeError exceptions for API consumers that override
sys.std* streams pseudo-file objects.

12 years agoEventLoop: handle EINTR IOError for epoll
Zac Medico [Wed, 22 Aug 2012 16:23:18 +0000 (09:23 -0700)]
EventLoop: handle EINTR IOError for epoll

12 years agoEventLoop: use epoll when available
Zac Medico [Wed, 22 Aug 2012 05:38:57 +0000 (22:38 -0700)]
EventLoop: use epoll when available

This will fix bug #432024.

12 years ago_apply_hash_filter: make hash_filter simpler
Zac Medico [Wed, 22 Aug 2012 04:01:24 +0000 (21:01 -0700)]
_apply_hash_filter: make hash_filter simpler

Now any callable object will work, which might be helpful for
consumers of the Manifest.checkFileHashes() method.

12 years agoImplement PORTAGE_CHECKSUM_FILTER for bug #432170
Zac Medico [Tue, 21 Aug 2012 20:22:19 +0000 (13:22 -0700)]
Implement PORTAGE_CHECKSUM_FILTER for bug #432170

12 years agoPollScheduler: use timeout for loadavg checks
Zac Medico [Tue, 21 Aug 2012 03:29:04 +0000 (20:29 -0700)]
PollScheduler: use timeout for loadavg checks

This ensures that the code from commit
fe03b5fd790fc09bd6594c55bb174e80aaac1e5a behaves correctly even when
there are no poll events arriving for a long time (which might happen
if the running builds don't produce output for a long time).

12 years agoScheduler: only use poll timeout when needed
Zac Medico [Mon, 20 Aug 2012 20:37:53 +0000 (13:37 -0700)]
Scheduler: only use poll timeout when needed

This avoids wasteful CPU consumption, as reported in bug #432024.

12 years agomake.conf.5: warn about PORTAGE_TMPDIR in PORTDIR
Dave Kemper [Sun, 19 Aug 2012 21:33:44 +0000 (14:33 -0700)]
make.conf.5: warn about PORTAGE_TMPDIR in PORTDIR

This will fix bug #392565.

12 years agoemerge-delta-webrsync: tweak "recompressing" msg
Zac Medico [Sun, 19 Aug 2012 05:44:35 +0000 (22:44 -0700)]
emerge-delta-webrsync: tweak "recompressing" msg

FEATURES=webrsync-gpg forces it to recompress in the foreground.

12 years agoemerge-delta-webrsync: improve date calculations
Zac Medico [Sun, 19 Aug 2012 05:21:40 +0000 (22:21 -0700)]
emerge-delta-webrsync: improve date calculations

This borrows some code from emerge-webrsync, and will fix bug #153513.

12 years agoemerge-webrsync: fix date usage for BSD
Zac Medico [Sun, 19 Aug 2012 04:03:11 +0000 (21:03 -0700)]
emerge-webrsync: fix date usage for BSD

12 years agoemerge-webrsync: use ${PORTAGE_TMPDIR}/portage
Zac Medico [Sat, 18 Aug 2012 23:59:41 +0000 (16:59 -0700)]
emerge-webrsync: use ${PORTAGE_TMPDIR}/portage

For consistency with commit 83e677766650e73071813c0d46547647e5f66029.

12 years agoemerge-*webrsync: use ${PORTAGE_BIN_PATH}/emerge
Zac Medico [Sat, 18 Aug 2012 23:20:06 +0000 (16:20 -0700)]
emerge-*webrsync: use ${PORTAGE_BIN_PATH}/emerge

12 years agoemerge-*webrsync: fix post_sync for prefix
Zac Medico [Sat, 18 Aug 2012 23:12:33 +0000 (16:12 -0700)]
emerge-*webrsync: fix post_sync for prefix

12 years agoemerge-delta-webrsync: mktemp in PORTAGE_TMPDIR
Zac Medico [Sat, 18 Aug 2012 22:50:53 +0000 (15:50 -0700)]
emerge-delta-webrsync: mktemp in PORTAGE_TMPDIR

This will fix bug #198362.

12 years agoemerge-delta-webrsync: fix make.globals path
Zac Medico [Sat, 18 Aug 2012 20:51:28 +0000 (13:51 -0700)]
emerge-delta-webrsync: fix make.globals path

12 years agoemerge-delta-webrsync: rm -f for non-interactive
Zac Medico [Sat, 18 Aug 2012 20:32:00 +0000 (13:32 -0700)]
emerge-delta-webrsync: rm -f for non-interactive

This prevents interactive mode as reported in bug #176008.

12 years agoemerge-delta-webrsync: normalize fetch URI
Zac Medico [Sat, 18 Aug 2012 01:44:59 +0000 (18:44 -0700)]
emerge-delta-webrsync: normalize fetch URI

This will fix bug #124072.

12 years agoemerge-delta-webrsync: PORTAGE_RSYNC_OPTS
Zac Medico [Sat, 18 Aug 2012 01:27:58 +0000 (18:27 -0700)]
emerge-delta-webrsync: PORTAGE_RSYNC_OPTS

12 years agoemerge-delta-webrsync: add -q/--quiet option
Zac Medico [Sat, 18 Aug 2012 01:12:41 +0000 (18:12 -0700)]
emerge-delta-webrsync: add -q/--quiet option

12 years agoemerge-delta-webrsync: check write permission
Zac Medico [Sat, 18 Aug 2012 01:07:15 +0000 (18:07 -0700)]
emerge-delta-webrsync: check write permission

This will fix bug #176008.

12 years agoemerge-delta-webrsync: handle FEATURES=usersync
Zac Medico [Sat, 18 Aug 2012 00:57:19 +0000 (17:57 -0700)]
emerge-delta-webrsync: handle FEATURES=usersync

12 years agoemerge-delta-webrsync: support gpg verification
Zac Medico [Sat, 18 Aug 2012 00:47:57 +0000 (17:47 -0700)]
emerge-delta-webrsync: support gpg verification

This will fix bug #286373.

BUG: Signature verification will fail if the local bzip2 program does
not produce output that is perfectly identical to the bzip2 program
used to compress the signed tar file.

12 years agoemerge-delta-webrsync: remove umd5sum
Alexey Solovyev [Sat, 18 Aug 2012 00:32:52 +0000 (17:32 -0700)]
emerge-delta-webrsync: remove umd5sum

This will fix bug #189084.

12 years agoemerge-delta-webrsync: call portageq for config
Zac Medico [Sat, 18 Aug 2012 00:27:18 +0000 (17:27 -0700)]
emerge-delta-webrsync: call portageq for config

12 years agomkrelease.sh: include new misc dir
Zac Medico [Fri, 17 Aug 2012 23:52:45 +0000 (16:52 -0700)]
mkrelease.sh: include new misc dir

12 years agoBashSyntaxTestCase: include new misc dir
Zac Medico [Fri, 17 Aug 2012 23:48:22 +0000 (16:48 -0700)]
BashSyntaxTestCase: include new misc dir

12 years agoemerge-delta-webrsync: import version 3.5.1-r3
Zac Medico [Fri, 17 Aug 2012 23:38:40 +0000 (16:38 -0700)]
emerge-delta-webrsync: import version 3.5.1-r3

12 years agometadata.dtd: update to latest
Zac Medico [Fri, 17 Aug 2012 21:35:00 +0000 (14:35 -0700)]
metadata.dtd: update to latest

12 years agoegencache: add a standard -j flags for --jobs
Mike Frysinger [Thu, 16 Aug 2012 21:46:58 +0000 (17:46 -0400)]
egencache: add a standard -j flags for --jobs

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years agoRemove tests for deprecated 3_pre2 EAPI.
Ulrich Müller [Wed, 15 Aug 2012 20:50:29 +0000 (22:50 +0200)]
Remove tests for deprecated 3_pre2 EAPI.

12 years agoemerge-webrsync: PORTAGE_RSYNC_OPTS, bug #364105
Jan Pobrislo [Wed, 15 Aug 2012 03:03:23 +0000 (20:03 -0700)]
emerge-webrsync: PORTAGE_RSYNC_OPTS, bug #364105

12 years agoemerge-webrsync: preserve ownership for usersync
Zac Medico [Wed, 15 Aug 2012 02:55:19 +0000 (19:55 -0700)]
emerge-webrsync: preserve ownership for usersync

12 years agoemerge-webrsync: check permission, bug #142202
Zac Medico [Wed, 15 Aug 2012 02:00:35 +0000 (19:00 -0700)]
emerge-webrsync: check permission, bug #142202

12 years agoemerge-webrsync: add -k/--keep option
Zac Medico [Wed, 15 Aug 2012 01:03:22 +0000 (18:03 -0700)]
emerge-webrsync: add -k/--keep option

12 years agoemerge-webrsync: adjust for 00:45 snapshots
Zac Medico [Tue, 14 Aug 2012 04:07:42 +0000 (21:07 -0700)]
emerge-webrsync: adjust for 00:45 snapshots

The time changed from 01:45 to 00:45 some time ago.

12 years agoemaint logs: simplify error output handling v2.2.0_alpha121
Zac Medico [Sat, 11 Aug 2012 22:52:30 +0000 (15:52 -0700)]
emaint logs: simplify error output handling

12 years agoemaint: cleanup TaskHandler isatty logic
Zac Medico [Sat, 11 Aug 2012 21:36:34 +0000 (14:36 -0700)]
emaint: cleanup TaskHandler isatty logic

12 years agoinstallsources: fix file permissions, bug #430962
Nico Roeser [Sat, 11 Aug 2012 19:11:06 +0000 (12:11 -0700)]
installsources: fix file permissions, bug #430962

12 years agoemaint binhost: support compress-index
Zac Medico [Thu, 9 Aug 2012 20:34:44 +0000 (13:34 -0700)]
emaint binhost: support compress-index

12 years agorepoman: remove IUSE.undefined check
Zac Medico [Thu, 9 Aug 2012 01:59:21 +0000 (18:59 -0700)]
repoman: remove IUSE.undefined check

This was suggested in the "Don't require assignment of empty variables
in ebuilds?" thread on the gentoo-dev mailing list:

  http://thread.gmane.org/gmane.linux.gentoo.devel/78806

12 years agobintree.inject(): write Packages.gz atomically
Zac Medico [Wed, 8 Aug 2012 20:34:15 +0000 (13:34 -0700)]
bintree.inject(): write Packages.gz atomically

12 years agoPortage writes a compressed copy of 'Packages' index file.
W-Mark Kubacki [Wed, 8 Aug 2012 16:49:36 +0000 (18:49 +0200)]
Portage writes a compressed copy of 'Packages' index file.

This behaviour is enabled by FEATURES="compress-index". The
resulting file is 'Packages.gz' and its modification time will
match that of 'Packages'.

Web-servers use that copy to avoid repeated on-the-fly compression.

In order to re-use 'atomic_ofstream' usage of 'codecs.zlib_codec'
has been considered and discarded, because 'GzipFile' yields
smaller files. (According to Mark's tests 62% smaller.)

Example usage, Nginx:

  location =/Packages {
    gzip_static on;
    default_type text/plain;
  }

Apache httpd (use with caution):

  RewriteRule ^(.*)/Packages$ $1/Packages.gz [T=text/plain,E=GZIP:gzip,L]
  <FilesMatch "Packages\.gz$">
    Header set Content-Encoding gzip
  </FilesMatch>