portage.git
11 years ago_display_use: use local variables
Zac Medico [Thu, 28 Feb 2013 00:24:54 +0000 (16:24 -0800)]
_display_use: use local variables

11 years agoDisplay: unsplit _display_use method parts
Zac Medico [Thu, 28 Feb 2013 00:12:42 +0000 (16:12 -0800)]
Display: unsplit _display_use method parts

11 years agoDisplay: eliminate duplicate vardb.match() calls
Zac Medico [Wed, 27 Feb 2013 23:39:33 +0000 (15:39 -0800)]
Display: eliminate duplicate vardb.match() calls

11 years agoconfig: unset LINGUAS if appropriate, bug #459350
Zac Medico [Wed, 27 Feb 2013 00:27:40 +0000 (16:27 -0800)]
config: unset LINGUAS if appropriate, bug #459350

11 years agoEventLoop: qemu-user epoll quirk, bug #451326
Zac Medico [Mon, 25 Feb 2013 23:52:44 +0000 (15:52 -0800)]
EventLoop: qemu-user epoll quirk, bug #451326

The epoll implementation in qemu-user-1.2.2 appears to generate events
for file descriptors that are no longer registered. Handle it, since it
appears to be harmless (see bug #451326).

11 years agoman/ru/env-update.1: fix some bold and italics
Vladimir Romanov [Sun, 24 Feb 2013 18:54:34 +0000 (10:54 -0800)]
man/ru/env-update.1: fix some bold and italics

11 years agoman/ru/ebuild.1: translate OPTIONS
Vladimir Romanov [Sun, 24 Feb 2013 18:53:11 +0000 (10:53 -0800)]
man/ru/ebuild.1: translate OPTIONS

11 years agoemerge --help: remove [--verbose], bug #458730
Zac Medico [Sat, 23 Feb 2013 19:13:53 +0000 (11:13 -0800)]
emerge --help: remove [--verbose], bug #458730

Since commit f127d25373a42f3200a331b7f2641a1cf0e90b50, --verbose has no
effect.

11 years agoFix a typo.
Arfrever Frehtes Taifersar Arahesis [Fri, 22 Feb 2013 18:51:52 +0000 (19:51 +0100)]
Fix a typo.

11 years ago_world_atom: avoid world set lock reentrance
Zac Medico [Thu, 21 Feb 2013 22:23:57 +0000 (14:23 -0800)]
_world_atom: avoid world set lock reentrance

This fixes a case with FEATURE=parallel-install, where a call from
_world_atom to the global event loop could result in reentrace and
lock interference.

11 years agoRemove "Starting parallel fetch" msg, bug #368297
Zac Medico [Thu, 21 Feb 2013 14:28:50 +0000 (06:28 -0800)]
Remove "Starting parallel fetch" msg, bug #368297

11 years agotestCompileModules(): Use builtins.compile() instead of py_compile.compile()
Arfrever Frehtes Taifersar Arahesis [Wed, 20 Feb 2013 19:53:53 +0000 (20:53 +0100)]
testCompileModules(): Use builtins.compile() instead of py_compile.compile()
to avoid replacing /dev/null character device with a regular file when
using Python 3.4 (http://bugs.python.org/issue17222).

11 years agodepgraph: tweak "required by" message format
Mike Frysinger [Mon, 18 Feb 2013 02:19:04 +0000 (21:19 -0500)]
depgraph: tweak "required by" message format

The current output format for listing a chain of dependencies produces
one long flat line that can be hard to read.  For example, if you mask
dev-lang/ruby and then try to install dev-ruby/json, you'll see:
 The following mask changes are necessary to proceed:
  (see "package.unmask" in the portage(5) man page for more details)
 #required by dev-ruby/rdoc-3.12.1[ruby_targets_ruby19]
 # /etc/portage/package.mask/misc:
 =dev-lang/ruby-1.9.3_p385
 #required by dev-ruby/rubygems-1.8.24[ruby_targets_ruby18], required by virtual/rubygems-1, required by dev-ruby/racc-1.4.9[-test,ruby_targets_ruby18], required by dev-ruby/rdoc-3.12.1[ruby_targets_ruby18], required by dev-lang/ruby-1.9.3_p385[rdoc], required by dev-ruby/rake-0.9.2.2[ruby_targets_ruby19], required by dev-ruby/json-1.7.7[-test,-doc,ruby_targets_ruby19]
 # /etc/portage/package.mask/misc:
 =dev-lang/ruby-1.8.7_p371

Tracing your way through that list is not easy.  Instead, let's use
newlines and now we get:
 The following mask changes are necessary to proceed:
  (see "package.unmask" in the portage(5) man page for more details)
 # required by dev-ruby/rdoc-3.12.1[ruby_targets_ruby19]
 # /etc/portage/package.mask/misc:
 =dev-lang/ruby-1.9.3_p385
 # required by dev-ruby/rubygems-1.8.24[ruby_targets_ruby18]
 # required by virtual/rubygems-1
 # required by dev-ruby/racc-1.4.9[-test,ruby_targets_ruby18]
 # required by dev-ruby/rdoc-3.12.1[ruby_targets_ruby18]
 # required by dev-lang/ruby-1.9.3_p385[rdoc]
 # required by dev-ruby/rake-0.9.2.2[ruby_targets_ruby19]
 # required by dev-ruby/json-1.7.7[-test,-doc,ruby_targets_ruby19]
 # /etc/portage/package.mask/misc:
 =dev-lang/ruby-1.8.7_p371

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoebuild: delete useless indent
Mike Frysinger [Mon, 18 Feb 2013 02:07:40 +0000 (21:07 -0500)]
ebuild: delete useless indent

Should be no functional change here.  The code was indented one too many
times, and the if check is pointless -- the for loop will already skip
if there are no elements in the list.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agorepoman: clean up style in a lot of places
Mike Frysinger [Mon, 18 Feb 2013 02:02:09 +0000 (21:02 -0500)]
repoman: clean up style in a lot of places

Shouldn't be any functional changes in here.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoUpdate GNU-stack URLs.
Zac Medico [Sun, 17 Feb 2013 23:38:58 +0000 (15:38 -0800)]
Update GNU-stack URLs.

11 years agoportageq: fix 'Unicode equal comparison failed'
Zac Medico [Sun, 17 Feb 2013 22:53:03 +0000 (14:53 -0800)]
portageq: fix 'Unicode equal comparison failed'

11 years ago_exec: avoid UnicodeEncodeError for execve args
Zac Medico [Sun, 17 Feb 2013 22:12:29 +0000 (14:12 -0800)]
_exec: avoid UnicodeEncodeError for execve args

11 years agopreplib: remove for bug #102297
Zac Medico [Fri, 15 Feb 2013 23:39:57 +0000 (15:39 -0800)]
preplib: remove for bug #102297

11 years agoabssymlink: clarify docs, bug #225821
Zac Medico [Fri, 15 Feb 2013 22:34:36 +0000 (14:34 -0800)]
abssymlink: clarify docs, bug #225821

11 years agoEXTRA_ECONF: support quoted args, bug #457136
Zac Medico [Thu, 14 Feb 2013 16:47:41 +0000 (08:47 -0800)]
EXTRA_ECONF: support quoted args, bug #457136

11 years agorepoman: warn if not FEATURES=sign, bug #457034 v2.2.0_alpha163
Zac Medico [Thu, 14 Feb 2013 05:32:48 +0000 (21:32 -0800)]
repoman: warn if not FEATURES=sign, bug #457034

11 years agoslot_operator_replace_installed: check available
Zac Medico [Thu, 14 Feb 2013 04:45:40 +0000 (20:45 -0800)]
slot_operator_replace_installed: check available

This fixes a case where it could try to pull in an unavailable SLOT.

11 years ago_slot_operator_update_probe: handle slot conflict
Zac Medico [Thu, 14 Feb 2013 03:40:19 +0000 (19:40 -0800)]
_slot_operator_update_probe: handle slot conflict

The "insignificant change" detection from commit
0240b8b754ab5f642c50c863d4bec1dc3636ba29 is only valid when we are
not trying to resolve a slot conflict (see bug #457142).

11 years ago--complete-graph-if-new-ver: test slot change
Zac Medico [Thu, 14 Feb 2013 01:20:34 +0000 (17:20 -0800)]
--complete-graph-if-new-ver: test slot change

11 years ago--complete-if-new-ver: check for slot change
Zac Medico [Thu, 14 Feb 2013 00:45:45 +0000 (16:45 -0800)]
--complete-if-new-ver: check for slot change

11 years agoemerge: don't traceback or invalid *.ebuild args
Zac Medico [Wed, 13 Feb 2013 04:44:31 +0000 (20:44 -0800)]
emerge: don't traceback or invalid *.ebuild args

11 years ago_get_dep_chain: include repo names v2.2.0_alpha162
Zac Medico [Tue, 12 Feb 2013 03:24:57 +0000 (19:24 -0800)]
_get_dep_chain: include repo names

11 years agoSlotOperatorUnsolvedTestCase: add unwanted binpkg
Zac Medico [Tue, 12 Feb 2013 03:03:16 +0000 (19:03 -0800)]
SlotOperatorUnsolvedTestCase: add unwanted binpkg

11 years agoBacktrack unsatisfied slot-operator, bug #456340.
Zac Medico [Tue, 12 Feb 2013 02:50:36 +0000 (18:50 -0800)]
Backtrack unsatisfied slot-operator, bug #456340.

11 years agoAdd test case for bug #456340.
Zac Medico [Tue, 12 Feb 2013 01:35:48 +0000 (17:35 -0800)]
Add test case for bug #456340.

The problem here results from poor handling of the unsatisfied built
slot operator dep inside _add_dep, where it aborts the graph and tries
to backtrack immediately. We really want it to queue a rebuild here,
and continue filling out the graph.

11 years ago_slot_operator_update_probe: detect insignificant
Zac Medico [Mon, 11 Feb 2013 23:43:39 +0000 (15:43 -0800)]
_slot_operator_update_probe: detect insignificant

This avoids rebuilding of two packages due to a sub-slot change in the
child package without revision bump. The sub-slot change is considered
insignificant until one of its parent packages needs to be rebuilt.

11 years ago_add_pkg: fix existing_node early return
Zac Medico [Mon, 11 Feb 2013 22:51:09 +0000 (14:51 -0800)]
_add_pkg: fix existing_node early return

This fixes a case where it would return early, before calling
_add_slot_operator_dep, which could prevent slot-operator backtracking
from working properly. This makes SlotChangeWithoutRevBumpTestCase work
properly when we add an undesirable app-arch/libarchive-3.1.1 binary
package.

11 years agoDisable IUSE check for binary pkg API consumers.
Zac Medico [Mon, 11 Feb 2013 19:19:30 +0000 (11:19 -0800)]
Disable IUSE check for binary pkg API consumers.

In the use() IUSE QA check, exempt binary packages for API consumers
like Entropy which do not require a full profile with IUSE_IMPLICIT and
stuff (see bug #456830).

11 years agodeprecated_profile_check: show eselect command
Zac Medico [Mon, 11 Feb 2013 15:28:50 +0000 (07:28 -0800)]
deprecated_profile_check: show eselect command

11 years agonowarn syntax for repoman to ignore
Heather [Mon, 11 Feb 2013 07:41:04 +0000 (11:41 +0400)]
nowarn syntax for repoman to ignore

11 years agoebuild: add _reset_legacy_globals for reload
Zac Medico [Mon, 11 Feb 2013 09:38:58 +0000 (01:38 -0800)]
ebuild: add _reset_legacy_globals for reload

This avoids weird issues that are triggered when the module is
reloaded (like having classes redefined while instances from the old
classes are still around, triggering TypeError confusion).

11 years agoCheck lib*/udev/rules.d for bug #455606.
Zac Medico [Mon, 11 Feb 2013 07:19:51 +0000 (23:19 -0800)]
Check lib*/udev/rules.d for bug #455606.

11 years agorepoman: fix use.stable, bug #456342
Zac Medico [Mon, 11 Feb 2013 06:30:13 +0000 (22:30 -0800)]
repoman: fix use.stable, bug #456342

Make child package inherit stable status from the parent package.
This is required in order for USE deps of unstable packages to be
resolved correctly, since otherwise use.stable.{mask,force} settings
of dependencies may conflict (see bug #456342).

11 years agodeprecated_profile_check: suggest portage upgrade
Zac Medico [Mon, 11 Feb 2013 03:06:20 +0000 (19:06 -0800)]
deprecated_profile_check: suggest portage upgrade

If the new profile can't be parsed due to unsupported EAPI, then show a
warning like this:

!!! Your current profile is deprecated and not supported anymore.
!!! Use eselect profile to update your profile.
!!! Please upgrade to the following profile if possible:
        default/linux/x86/13.0/desktop

!!! Unable to parse profile: '/usr/portage/profiles/default/linux/x86/13.0/desktop'
!!! ParseError: Profile contains unsupported EAPI '5': '/usr/portage/profiles/eapi-5-files/eapi'

 * You must update portage before you can migrate to the above profile.
 * In order to update portage, run 'emerge --oneshot portage'.

11 years ago_slot_change_probe: handle masks
Zac Medico [Mon, 11 Feb 2013 02:24:51 +0000 (18:24 -0800)]
_slot_change_probe: handle masks

11 years agoTrigger rebuild for sub-slot change, bug #456208.
Zac Medico [Mon, 11 Feb 2013 01:58:16 +0000 (17:58 -0800)]
Trigger rebuild for sub-slot change, bug #456208.

If sub-slot changes without a revbump, trigger a rebuild so that
dependent packages will have the new sub-slot recorded in their
slot-operator deps. Hopefully this will fix bug #456208.

11 years agoAvoid using gawk, where generic awk is enough
Christoph Junghans [Sun, 10 Feb 2013 19:42:52 +0000 (12:42 -0700)]
Avoid using gawk, where generic awk is enough

11 years agoFix some ResourceWarnings.
Arfrever Frehtes Taifersar Arahesis [Sun, 10 Feb 2013 03:47:21 +0000 (04:47 +0100)]
Fix some ResourceWarnings.

11 years agoemerge --sync: python 2.6.4 compat, bug #456236
Zac Medico [Sat, 9 Feb 2013 17:58:59 +0000 (09:58 -0800)]
emerge --sync: python 2.6.4 compat, bug #456236

Avoid "TypeError: keywords must be strings" issue triggered
by unicode_literals: http://bugs.python.org/issue4978

Also see commit e9a04922c144b267534e3335d2ff3d7bb8994b80.

11 years agoTweak "add to world" prompt, bug #455946.
Zac Medico [Fri, 8 Feb 2013 16:29:05 +0000 (08:29 -0800)]
Tweak "add to world" prompt, bug #455946.

11 years agoeconf: teak timestamp preservation
Zac Medico [Tue, 5 Feb 2013 08:39:30 +0000 (00:39 -0800)]
econf: teak timestamp preservation

Use the sed -i so we can keep the same inode, avoiding potential issues
with loss of file metadata.

11 years agoeconf: preserve configure timestamp, bug #440304
Zac Medico [Mon, 4 Feb 2013 17:53:22 +0000 (09:53 -0800)]
econf: preserve configure timestamp, bug #440304

11 years agoinstall_qa_check: use #k rather than %k with scanelf
Mike Frysinger [Sun, 3 Feb 2013 05:52:11 +0000 (00:52 -0500)]
install_qa_check: use #k rather than %k with scanelf

No need to use `sed` to remove the string when scanelf itself supports it.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoMask USE=test if RESTRICT=test, for bug #273272.
Zac Medico [Sat, 2 Feb 2013 09:03:09 +0000 (01:03 -0800)]
Mask USE=test if RESTRICT=test, for bug #273272.

This just handles the simple case where RESTRICT=test is not
conditional on any USE flags.

11 years agoman/emerge.1: add rebuild output, bug #454904
Zac Medico [Fri, 1 Feb 2013 02:33:04 +0000 (18:33 -0800)]
man/emerge.1: add rebuild output, bug #454904

11 years agorunTests: handle samefile OSError, bug #454880
Zac Medico [Thu, 31 Jan 2013 19:56:13 +0000 (11:56 -0800)]
runTests: handle samefile OSError, bug #454880

11 years agoFix some typos.
Arfrever Frehtes Taifersar Arahesis [Thu, 31 Jan 2013 03:58:23 +0000 (04:58 +0100)]
Fix some typos.

11 years agoebuild.5: update example ebuild copyright date
Vladimir Romanov [Wed, 30 Jan 2013 16:32:32 +0000 (08:32 -0800)]
ebuild.5: update example ebuild copyright date

11 years agoman pages: misc fixes and style tweaks
Vladimir Romanov [Wed, 30 Jan 2013 16:03:20 +0000 (08:03 -0800)]
man pages: misc fixes and style tweaks

11 years agoemerge-delta-webrsync: fix STATE_DIR for EPREFIX
Zac Medico [Mon, 28 Jan 2013 21:45:44 +0000 (13:45 -0800)]
emerge-delta-webrsync: fix STATE_DIR for EPREFIX

11 years agoremoveFromContents: avoid KeyError, bug #454400
Zac Medico [Mon, 28 Jan 2013 21:18:00 +0000 (13:18 -0800)]
removeFromContents: avoid KeyError, bug #454400

It's possible for two different paths to refer to the same
contents_key, due to directory symlinks. This could happen if a
directory was changed to a symlink after a package was merged, either
by the user or by a pkg_* phase from some random ebuild.

11 years agoportage(5): improve layout.conf documentation
Mike Frysinger [Mon, 28 Jan 2013 21:04:01 +0000 (16:04 -0500)]
portage(5): improve layout.conf documentation

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoAdd chown workaround for python in Fedora 18.
Zac Medico [Mon, 28 Jan 2013 01:18:57 +0000 (17:18 -0800)]
Add chown workaround for python in Fedora 18.

Compatibility workaround for Python 2.7.3 in Fedora 18, which throws
"TypeError: group id must be integer" if we try to pass an ObjectProxy
instance into chown.

11 years agorepoman: remove obsolete RMD160 requirement
Zac Medico [Sun, 27 Jan 2013 21:26:49 +0000 (13:26 -0800)]
repoman: remove obsolete RMD160 requirement

11 years agoAdd man/ru/{env-update,etc-update,fixpackages}.1
Vladimir Romanov [Sun, 27 Jan 2013 20:18:15 +0000 (12:18 -0800)]
Add man/ru/{env-update,etc-update,fixpackages}.1

11 years agoTweak die message for fail-clean, bug #454050.
Zac Medico [Fri, 25 Jan 2013 22:35:29 +0000 (14:35 -0800)]
Tweak die message for fail-clean, bug #454050.

11 years agoSuppress portage group warning for bug #454060.
Zac Medico [Fri, 25 Jan 2013 21:30:44 +0000 (13:30 -0800)]
Suppress portage group warning for bug #454060.

11 years agoHandle getpwuid KeyError for bug #454060.
Zac Medico [Fri, 25 Jan 2013 19:48:46 +0000 (11:48 -0800)]
Handle getpwuid KeyError for bug #454060.

11 years agoconfig: raise PermissionDenied more v2.2.0_alpha161
Zac Medico [Thu, 24 Jan 2013 21:53:04 +0000 (13:53 -0800)]
config: raise PermissionDenied more

This enables clear reporting of "Permission Denied" when appropriate,
instead of triggering nonsensical messages about invalid profiles or
repositories.

11 years agoRepoConfigLoader: raise PermissionDenied more
Zac Medico [Thu, 24 Jan 2013 21:38:41 +0000 (13:38 -0800)]
RepoConfigLoader: raise PermissionDenied more

11 years agoRepoConfigLoader: raise PermissionDenied
Zac Medico [Thu, 24 Jan 2013 20:01:28 +0000 (12:01 -0800)]
RepoConfigLoader: raise PermissionDenied

11 years ago_new_backup_path: fix TypeError, bug #453892
Zac Medico [Thu, 24 Jan 2013 18:29:41 +0000 (10:29 -0800)]
_new_backup_path: fix TypeError, bug #453892

11 years agoPackage._init_use: always sync _metadata v2.2.0_alpha160
Zac Medico [Thu, 24 Jan 2013 01:32:01 +0000 (17:32 -0800)]
Package._init_use: always sync _metadata

11 years agoAdd debug output for cases like bug #453400.
Zac Medico [Thu, 24 Jan 2013 01:18:10 +0000 (17:18 -0800)]
Add debug output for cases like bug #453400.

11 years agoPackage: avoid redundant splitting of USE
Zac Medico [Thu, 24 Jan 2013 00:42:27 +0000 (16:42 -0800)]
Package: avoid redundant splitting of USE

11 years agoPackage: filter built USE for bug #453400
Zac Medico [Wed, 23 Jan 2013 16:19:06 +0000 (08:19 -0800)]
Package: filter built USE for bug #453400

The enabled flags must be consistent with implicit IUSE, in order to
avoid potential inconsistencies in USE dep matching (see bug #453400).

11 years agoFix default use match for implicit IUSE. v2.2.0_alpha159
Zac Medico [Mon, 21 Jan 2013 21:30:13 +0000 (13:30 -0800)]
Fix default use match for implicit IUSE.

This will fix bug #453400, which was triggered by inconsistency
between the enabled USE and the effective missing_disabled set used
in matching logic, due to implicit IUSE.

11 years agomake.conf: example for ACCEPT_LICENSE
Ulrich Müller [Mon, 21 Jan 2013 15:30:53 +0000 (16:30 +0100)]
make.conf: example for ACCEPT_LICENSE

11 years agomake.conf.5: better examples for ACCEPT_LICENSE
Ulrich Müller [Mon, 21 Jan 2013 14:18:04 +0000 (15:18 +0100)]
make.conf.5: better examples for ACCEPT_LICENSE

11 years agomake.conf.example: remove obsolete warning
Zac Medico [Mon, 21 Jan 2013 16:48:04 +0000 (08:48 -0800)]
make.conf.example: remove obsolete warning

11 years agorepoman: fix TypeError: must be char, not unicode v2.2.0_alpha158
Zac Medico [Sun, 20 Jan 2013 15:42:39 +0000 (07:42 -0800)]
repoman: fix TypeError: must be char, not unicode

11 years agorepoman: fix stable mask to use correct profile v2.2.0_alpha157
Zac Medico [Sun, 20 Jan 2013 02:33:10 +0000 (18:33 -0800)]
repoman: fix stable mask to use correct profile

We can't rely on the internal config instance from the given package
instance, since it does not refer to the correct profile.

11 years agoisStable: fix * logic for repoman
Zac Medico [Sun, 20 Jan 2013 01:28:08 +0000 (17:28 -0800)]
isStable: fix * logic for repoman

11 years agoisStable: handle * for repoman more
Zac Medico [Sun, 20 Jan 2013 00:44:29 +0000 (16:44 -0800)]
isStable: handle * for repoman more

11 years agoisStable: handle * for repoman v2.2.0_alpha156
Zac Medico [Sun, 20 Jan 2013 00:12:30 +0000 (16:12 -0800)]
isStable: handle * for repoman

11 years agotests/repoman: add dev and exp profiles
Zac Medico [Sat, 19 Jan 2013 23:39:15 +0000 (15:39 -0800)]
tests/repoman: add dev and exp profiles

11 years agoFix stable mask logic for repoman.
Zac Medico [Sat, 19 Jan 2013 22:01:26 +0000 (14:01 -0800)]
Fix stable mask logic for repoman.

For repoman, if the package has an effective stable keyword that
intersects with the effective ACCEPT_KEYWORDS for the current
profile, then consider it stable.

11 years agoFindVCS: add debug info
Zac Medico [Sat, 19 Jan 2013 19:10:36 +0000 (11:10 -0800)]
FindVCS: add debug info

11 years agotest_security_set: detect missing xml support v2.2.0_alpha155
Zac Medico [Sat, 19 Jan 2013 07:04:53 +0000 (23:04 -0800)]
test_security_set: detect missing xml support

11 years agoglsa-check: explicit imports, fix glsaconfig ref
Zac Medico [Sat, 19 Jan 2013 06:40:11 +0000 (22:40 -0800)]
glsa-check: explicit imports, fix glsaconfig ref

11 years agoEnable glsa @security set for stable, and test.
Zac Medico [Sat, 19 Jan 2013 06:19:25 +0000 (22:19 -0800)]
Enable glsa @security set for stable, and test.

11 years agoglsa.py: fix misc breakage
Zac Medico [Sat, 19 Jan 2013 06:14:16 +0000 (22:14 -0800)]
glsa.py: fix misc breakage

11 years agoFix unicode vs. bytes issue in glsa-check (#341293)
Andy Kittner [Wed, 26 Jan 2011 23:21:21 +0000 (00:21 +0100)]
Fix unicode vs. bytes issue in glsa-check (#341293)

http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=01d40ffed91033119bae05dac5c9cea86b94aa2e

11 years agosync with genscripts rev 343. This adds the initial py3k support and the analyse...
Paul Varner [Tue, 9 Mar 2010 16:42:04 +0000 (16:42 +0000)]
sync with genscripts rev 343. This adds the initial py3k support and the analyse utility to gentoolkit

svn path=/trunk/gentoolkit/; revision=751

http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=2f90a4b9ceff920f793541376da21d313af083d9

11 years agoMerge rev 113 from djanderson's genscripts repo
Paul Varner [Tue, 8 Dec 2009 21:53:45 +0000 (21:53 +0000)]
Merge rev 113 from djanderson's genscripts repo

svn path=/trunk/gentoolkit/; revision=703

http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=acdf616efa73b77936963eaa8b5c715db97646d2

11 years agogetminupgrade: fix documentation and backtrace
Robert Buchholz [Tue, 18 Aug 2009 17:47:32 +0000 (17:47 +0000)]
getminupgrade: fix documentation and backtrace

Bug 281101: Fix a backtrace introduced in r647. in getminupgrade the
rValue variable was still leftover and was used in a check when
glsa-check was run in --emergelike mode and more than one upgrade atoms
existed.

Also, update the API documentation to reflect changes back then.

svn path=/trunk/gentoolkit/; revision=671

http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=2419943820ac8fb90bdf9bb5d2064a6ccdfec804

11 years agoDo not inject GLSAs into the checkfile when fixing them
Paul Varner [Wed, 20 May 2009 21:53:30 +0000 (21:53 +0000)]
Do not inject GLSAs into the checkfile when fixing them

There is no reason applied GLSAs must be stored in a checkfile. In the
current glsa-check GUI this will make it impossible to determine whether
the system is still affected by the GLSA (e.g. by re-emerging, or when a
GLSA is changed afterwards).

The current place for the checkfile (/var/cache) is not persistent per
FHS, meaning that people might clean out the contents of their injected
GLSAs. Since glsa.py is moving to portage anyway, we can use
/var/lib/portage as a place to store the injected GLSAs. Documentation
has been updated accordingly.

Note that the old checkfile should not be moved to the previous location
on upgrade since this will cause false negatives due to the above
arguments. A message should appear on upgrade (pkg_postinst or similar).

svn path=/trunk/gentoolkit/; revision=649

http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=4138f5b1b6dbcf1042663a45b3eae1e652bfc9be

11 years agoRestructure system affection detection.
Paul Varner [Wed, 20 May 2009 21:49:39 +0000 (21:49 +0000)]
Restructure system affection detection.

Store "vulnerable" and "upgrade" packages in a table, and use that
data to determine which packages cannot be upgraded, and which
packages actually cause upgrades

svn path=/trunk/gentoolkit/; revision=648

http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=b6a2a23926d54ccfa9a1ce331c1bc97dbe2c73d1

11 years agoChange behaviour of getMinUpgrade
Paul Varner [Wed, 20 May 2009 21:46:46 +0000 (21:46 +0000)]
Change behaviour of getMinUpgrade

This allows to differentiate between situations where
the system is unaffected and unexistance of an upgrade path.

Previously, the glsa-check would treat GLSAs that had no
upgrade path (such as mask glsas) as not affecting the system.

svn path=/trunk/gentoolkit/; revision=647

http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=ef38a394c5c2f5901173a53914705730850f9b3f

11 years agoSome python tweaks to speed glsa-check
Paul Varner [Wed, 20 May 2009 21:44:13 +0000 (21:44 +0000)]
Some python tweaks to speed glsa-check

svn path=/trunk/gentoolkit/; revision=646

http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=10e55d71bd5914fc7c9082adadf7bde2bec14ae3

11 years agoHandle unicode encoding when dumping to stdout and start migration to using StringIO
Paul Varner [Wed, 20 May 2009 21:35:12 +0000 (21:35 +0000)]
Handle unicode encoding when dumping to stdout and start migration to using StringIO

svn path=/trunk/gentoolkit/; revision=645

http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=88c18ffe936e602c45dcaa7500961623c49697ca

11 years agoAdd workaround for Python 2.6.4 issue 4978
Zac Medico [Fri, 18 Jan 2013 23:05:42 +0000 (15:05 -0800)]
Add workaround for Python 2.6.4 issue 4978

Avoid "TypeError: keywords must be strings" issue triggered
by unicode_literals: http://bugs.python.org/issue4978

11 years agoUse unicode_literals more.
Zac Medico [Fri, 18 Jan 2013 21:33:08 +0000 (13:33 -0800)]
Use unicode_literals more.

This helps to ensure consistent results, regardless of whether we're
using Python 2 or Python 3.

11 years agotest_string_format: use unicode_literals
Zac Medico [Fri, 18 Jan 2013 20:46:51 +0000 (12:46 -0800)]
test_string_format: use unicode_literals