Re: [gentoo-portage-dev] [PATCH v3] movefile: support in-kernel file copying on Linux (bug 607868)

2017-03-15 Thread Brian Dolbec
ions(+), 1 > deletion(-) create mode 100644 I'd say go for it, merge. There's been no additional feedback or review -- Brian Dolbec

Re: [gentoo-portage-dev] Re: [PATCH v2] Change how the tmp file for the commit msg is made (bug 571546)

2017-03-15 Thread Brian Dolbec
6MAs > 9nw1c9xqoGLhCiWvAK5PZOz4/cfEUtEawUrQg4wtoPap05qzMx8fsk3rX9J7ifrq > rQlBVxwGQqjN9ykzDl2IkY8/W9sx8Nhe5/M5rmUCsk0KUzhcrkQNCOHdzSSU2jSM > Yimj4y+gBnizHIVn2+sAZ4vosTXic/zVKi5meYgSM4pBRAwD4GJgQ5vV//cWTTZl > 6QTa+hD/NQZAQd14COhc > =9N4L > -END PGP SIGNATURE- >

Re: [gentoo-portage-dev] [PATCH] config.setcpv: fix handling of IUSE changes (bug 611896)

2017-03-09 Thread Brian Dolbec
ne == > eapi_attrs.iuse_effective): > + if not has_changed: > return > > # Filter out USE flags that aren't part of IUSE. > This has to looks good :) -- Brian Dolbec

Re: [gentoo-portage-dev] [PATCH] depgraph: fix runtime package mask interaction with slot operator rebuilds (bug 612094)

2017-03-09 Thread Brian Dolbec
s changed, 152 insertions(+), 12 yeah, looks fine -- Brian Dolbec

Re: [gentoo-portage-dev] [PATCH] depgraph: fix backtracking for slot operator rebuilds (bug 612042)

2017-03-08 Thread Brian Dolbec
success = True, > mergelist = expected_mergelist), > ) > @@ -229,6 +229,12 @@ class SlotConflictRebuildTestCase(TestCase): > ResolverPlaygroundTestCase( > ["app-misc/A"], > success = True, > + mergelist = ['app-misc/A-2']), > + > + ResolverPlaygroundTestCase( > + ["app-misc/A"], > + options={"--update": True, "--deep": > True}, > + success = True, > mergelist = ['app-misc/B-2', > 'app-misc/C-1', 'app-misc/A-2']), ) > looks good :) -- Brian Dolbec

Re: [gentoo-portage-dev] [PATCH] use_reduce: reserve missing_white_space_check for invalid tokens (bug 611838)

2017-03-08 Thread Brian Dolbec
except Exception as e: > + > missing_white_space_check(token, pos) raise InvalidDependString( > _("Invalid > token '%s', token %s") % (token, pos+1)) looks good :) -- Brian Dolbec

Re: [gentoo-portage-dev] [PATCH v2] emerge: auto-enable --with-bdeps if --usepkg is not enabled (bug 598444)

2017-03-08 Thread Brian Dolbec
| 5 + > pym/portage/tests/resolver/ResolverPlayground.py | 5 + > pym/portage/tests/resolver/test_bdeps.py | 215 > +++ 6 files changed, 266 insertions(+), 5 > deletions(-) create mode 100644 Looks fine, merge please :) -- Brian Dolbec

Re: [gentoo-portage-dev] [PATCH] grabfile_package: support -* in profile "packages" files (bug 610670)

2017-02-23 Thread Brian Dolbec
ppend((pkg, > > source_file)) > > + else: > > + atoms.append(pkg) > > + continue > > pkg = pkg[1:] > > - if pkg[:1] == '*' and mybasename == 'packages': > > + if pkg[:1] == '*' and is_packages_file: > > pkg = pkg[1:] > > try: > > pkg = Atom(pkg, > > allow_wildcard=allow_wildcard, > -- Brian Dolbec

Re: [gentoo-portage-dev] [PATCH] repos.conf: rename sync-depth option to clone-depth

2017-02-21 Thread Brian Dolbec
modules/git/git.py > +++ b/pym/portage/sync/modules/git/git.py > @@ -52,7 +52,9 @@ class GitSync(NewBase): > git_cmd_opts = "" > if self.settings.get("PORTAGE_QUIET") == "1": > git_cmd_opts += " --quiet" > - if self.repo.sync_depth is not None: > + if self.repo.clone_depth is not None: > + git_cmd_opts += " --depth %d" % > self.repo.clone_depth > + elif self.repo.sync_depth is not None: > git_cmd_opts += " --depth %d" % > self.repo.sync_depth if > self.repo.module_specific_options.get('sync-git-clone-extra-opts'): > git_cmd_opts += " %s" % > self.repo.module_specific_options['sync-git-clone-extra-opts'] hmm, I might be out of sync, but if this isn't merged already, looks fine. -- Brian Dolbec

Re: [gentoo-portage-dev] [PATCH] repoman: use regular expression to detect line continuations

2017-02-21 Thread Brian Dolbec
t line_escaped.endswith('\0'): > + if not line_escaped: > line = multiline > num = multinum > multiline = None > else: > continue > else: > - if line_escaped.endswith('\0'): > + if line_escaped: > multinum = num > multiline = line > continue Code seems fine to me, I trust you ;) -- Brian Dolbec

Re: [gentoo-portage-dev] [PATCH] Ignore setup.cfg and *.so

2017-02-14 Thread Brian Dolbec
> __pycache__/ > *.class > +*.so > /build > /tags > +setup.cfg > > repoman/build looks good, push please :) -- Brian Dolbec

Re: [gentoo-portage-dev] Re: [PATCH] spawn: instantiate userpriv_groups before fork (bug 582098)

2017-01-26 Thread Brian Dolbec
k, so that the result is cached in the main process. > > + bool(groups) > > + > > parent_pid = os.getpid() > > pid = None > > try: > > > > Pushed: > > https://gitweb.gentoo.org/proj/portage.git/commit/?id=ccf975296daec92d376c4989e5ffb2a6cdbe8a2d Sorry, it's been hard to keep up with email last few days, but yeah, this is a trivial patch. I know it's been a bastard to track down the source of the problem. Thanks -- Brian Dolbec

Re: [gentoo-portage-dev] Re: [PATCH V2] emerge: check correctly for --sync success (bug 606588)

2017-01-22 Thread Brian Dolbec
ailed repo? Probably not. Thanks Alexandru, Zac. -- Brian Dolbec

Re: [gentoo-portage-dev] Re: [PATCH V2] emaint: add more meaningful error messages to the logs module

2017-01-19 Thread Brian Dolbec
t;See the make.conf(5) man > page for " "PORT_LOGDIR_CLEAN usage instructions.") > return msg Thanks, applied by hand. Seems it was not rebased onto your previous patches. My editor also did a bit on whitespace cleanup. So you will likely have to force your branch to the new master since your commit will likely not like mine. -- Brian Dolbec

Re: [gentoo-portage-dev] Re: [PATCH V3] emaint: exit with non-zero status code when module fails (bug 567478)

2017-01-19 Thread Brian Dolbec
; could not > be opened for reading") > - return errors > + if errors: > + return (False, errors) > + return (True, None) > > def fix(self, **kwargs): > onProgress = kwargs.get('onProgress', None) > @@ -83,7 +85,9 @@ class WorldHandler(object): > except > portage.exception.PortageException: errors.append("%s could not be > opened for writing" % \ self.world_file) > - return errors > + if errors: > + return (False, errors) > + return (True, None) > finally: > world_set.unlock() > > diff --git a/pym/portage/tests/emerge/test_simple.py > b/pym/portage/tests/emerge/test_simple.py > index b1a2af5..5930f6c 100644 > --- a/pym/portage/tests/emerge/test_simple.py > +++ b/pym/portage/tests/emerge/test_simple.py > @@ -382,6 +382,7 @@ pkg_preinst() { > "PORTAGE_PYTHON" : portage_python, > "PORTAGE_REPOSITORIES" : > settings.repositories.config_string(), "PORTAGE_TMPDIR" : > portage_tmpdir, > + "PORT_LOGDIR" : portage_tmpdir, > "PYTHONDONTWRITEBYTECODE" : > os.environ.get("PYTHONDONTWRITEBYTECODE", ""), "PYTHONPATH" : > pythonpath, "__PORTAGE_TEST_PATH_OVERRIDE" : fake_bin, merged :) thank you -- Brian Dolbec

Re: [gentoo-portage-dev] [PATCH] emaint: add more meaningful error messages to the logs module

2017-01-19 Thread Brian Dolbec
AGES[rval]) > + else: > + msg.append("PORT_LOGDIR_CLEAN > command returned %s" > + % ("%d" % rval if rval else > "None")) msg.append("See the make.conf(5) man page for " > "PORT_LOGDIR_CLEAN usage > instructions.") return msg Thank you, looks good -- Brian Dolbec

Re: [gentoo-portage-dev] [PATCH] emaint: exit with non-zero status code when module fails (bug 567478)

2017-01-17 Thread Brian Dolbec
eep these modules pythonic in the sense that they return standard True/False for API use. In this case returning True/False would also make it easy to process the list of rcodes returned to main() sys.exit(False in rcodes) which will reverse the True/False to 0/1 automatically for us and make it super simple to process a variable length list success/fail results. -- Brian Dolbec

Re: [gentoo-portage-dev] [PATCH] repoman: remove extra blank line in commit footer

2017-01-13 Thread Brian Dolbec
commit_footer = "\n" > if dco_sob: > commit_footer += "Signed-off-by: > %s\n" % (dco_sob, ) commit_footer += "(Portage version: %s/%s/%s" % \ looks good, you can push it once your enable to the repo... -- Brian Dolbec

Re: [gentoo-portage-dev] [PATCH] bin/socks5-server.py: convert address from bytes to str (bug 604474)

2017-01-12 Thread Brian Dolbec
04: # IPv6 > data = yield from > reader.readexactly(16) addr = socket.inet_ntop(socket.AF_INET6, data) looks good -- Brian Dolbec

Re: [gentoo-portage-dev] [PATCH] repoman: add gentoo to remote-id type.

2017-01-06 Thread Brian Dolbec
off the trailing period. Merged finally. -- Brian Dolbec pgphgbv3LXihw.pgp Description: OpenPGP digital signature

Re: [gentoo-portage-dev] [PATCH] repoman: make unused local USE flags an error

2017-01-06 Thread Brian Dolbec
On Wed, 4 Jan 2017 14:29:01 -0800 Brian Dolbec <dol...@gentoo.org> wrote: > On Wed, 4 Jan 2017 13:14:38 -0500 > Mike Gilbert <flop...@gentoo.org> wrote: > > > X-Gentoo-Bug: 602002 > > X-Gentoo-Bug-URL: https://bugs.gentoo.org/602002 > > --- > &g

Re: [gentoo-portage-dev] [PATCH] repoman: make unused local USE flags an error

2017-01-04 Thread Brian Dolbec
", > + "metadata.bad", > "%s/metadata.xml: unused > local USE-description: '%s'" % (xpkg, myflag)) > return False Thanks, looks good. -- Brian Dolbec

Re: [gentoo-portage-dev] [PATCH] _dep_check_composite_db: select highest in slot conflict (bug 554070)

2017-01-04 Thread Brian Dolbec
| 8 +- > .../resolver/test_imagemagick_graphicsmagick.py| 104 > + 2 files changed, 110 insertions(+), 2 > deletions(-) create mode 100644 > pym/portage/tests/resolver/test_imagemagick_graphicsmagick.py > LGTM -- Brian Dolbec

Re: [gentoo-portage-dev] [PATCH] depgraph: clarify "update has been skipped" message (bug 602854)

2016-12-28 Thread Brian Dolbec
writemsg(" selected: %s\n" % > (selected_pkg,), noiselevel=-1) > + writemsg(" skipped: %s (see unsatisfied > dependency below)\n" > + % (pkg,), noiselevel=-1) > > for parent, root, atom in parent_atoms: > self._show_unsatisfied_dep(root, > atom, myparent=parent) looks good :) -- Brian Dolbec

Re: [gentoo-portage-dev] [PATCH] binarytree._read_metadata: return empty strings for undefine values (bug 603826)

2016-12-27 Thread Brian Dolbec
t. + > + Instances of this class will have missing attributes for > metadata that > + has not been passed into the constructor. The missing > attributes are > + used to distinguish missing metadata values from undefined > metadata values. > + For example, the repo attribute will be missing if the > 'repository' key > + is missing from the metadata dictionary. > """ > > def __new__(cls, cpv, metadata=None, settings=None, > eapi=None, LGTM -- Brian Dolbec

Re: [gentoo-portage-dev] [PATCH] LinkageMapELF: compute mulilib category for preserved libs (bug 598080)

2016-12-27 Thread Brian Dolbec
> compute_multilib_category(elf_header) > + entry.filename = > entry.filename[root_len:] > + owner = > plibs.pop(entry.filename, None) > + lines.append((owner, > "scanelf", _unicode(entry))) proc.wait() > proc.stdout.close() > looks fine -- Brian Dolbec

Re: [gentoo-portage-dev] [PATCH] portage/__init__.py: Fix live versioning to look for portage tags only

2016-12-05 Thread Brian Dolbec
On Mon, 5 Dec 2016 13:00:36 -0800 Zac Medico <zmed...@gentoo.org> wrote: > On 12/05/2016 12:41 PM, Brian Dolbec wrote: > > From 5074b2bfb36b6b9117f188588da55de3b5c01435 Mon Sep 17 00:00:00 > > 2001 From: Brian Dolbec <dol...@gentoo.org> > > Date: Mon, 5 Dec 2016 1

Re: [gentoo-portage-dev] [PATCH] repoman: Fix versioning system

2016-12-05 Thread Brian Dolbec
On Mon, 5 Dec 2016 13:10:38 -0800 Zac Medico <zmed...@gentoo.org> wrote: > On 12/05/2016 12:32 PM, Brian Dolbec wrote: > > On Mon, 5 Dec 2016 11:42:10 -0800 > > Brian Dolbec <dol...@gentoo.org> wrote: > > > >> From 1586f1a25c41fb6036a24b47cfa58e3e8

[gentoo-portage-dev] [PATCH] portage/__init__.py: Fix live versioning to look for portage tags only

2016-12-05 Thread Brian Dolbec
From 5074b2bfb36b6b9117f188588da55de3b5c01435 Mon Sep 17 00:00:00 2001 From: Brian Dolbec <dol...@gentoo.org> Date: Mon, 5 Dec 2016 11:56:02 -0800 Subject: [PATCH] portage/__init__.py: Fix live versioning to look for portage tags only --- pym/portage/__init__.py | 2 +- 1 file chan

Re: [gentoo-portage-dev] [PATCH] repoman: Fix versioning system

2016-12-05 Thread Brian Dolbec
On Mon, 5 Dec 2016 11:42:10 -0800 Brian Dolbec <dol...@gentoo.org> wrote: > From 1586f1a25c41fb6036a24b47cfa58e3e818b8a58 Mon Sep 17 00:00:00 2001 > From: Brian Dolbec <dol...@gentoo.org> > Date: Mon, 5 Dec 2016 11:27:15 -0800 > Subject: [PATCH] repoman: Fix versioning

Re: [gentoo-portage-dev] [PATCH] egencache: Migrate _special_filename class to portage.utils.changelog for api use

2016-12-04 Thread Brian Dolbec
On Sat, 3 Dec 2016 14:10:33 -0800 Zac Medico <zmed...@gentoo.org> wrote: > On 12/03/2016 01:49 PM, Brian Dolbec wrote: > > + if self.file_type_lt(self, other): > > + return True > > + elif self.file_type_lt(other, self): > >

Re: [gentoo-portage-dev] [PATCH] _emerge/depgraph.py: Autounmask-write fails when there isn't a file in package.*/ bug 598116

2016-12-04 Thread Brian Dolbec
On Sat, 3 Dec 2016 14:20:05 -0800 Zac Medico <zmed...@gentoo.org> wrote: > On 12/03/2016 01:48 PM, Brian Dolbec wrote: > > > > From c4a61bebca1cfeb0833cefb2c64be6156bdb8e8d Mon Sep 17 00:00:00 > > 2001 From: "hackers.terabit" <terabit.fun...@yandex.com>

Re: [gentoo-portage-dev] [PATCH] depgraph: select highest version involved in slot conflict (bug 554070)

2016-12-04 Thread Brian Dolbec
dynamic_config._package_tracker.match( > + root, > pkg.slot_atom, installed=False))), None) > if not e_pkg: > break LGTM -- Brian Dolbec

[gentoo-portage-dev] [PATCH] _emerge/depgraph.py: Autounmask-write fails when there isn't a file in package.*/ bug 598116

2016-12-03 Thread Brian Dolbec
default.write("# " + file_name) return last_file_path -- 2.9.3 -- Brian Dolbec

Re: [gentoo-portage-dev] [PATCH] bin/ebuild: fix EBUILD_FORCE_TEST / RESTRICT interaction (bug 601466)

2016-12-03 Thread Brian Dolbec
'.ebuild_changed'), > 'w').close() > -if 'digest' in tmpsettings.features: > - if pargs and pargs[0] not in ("digest", "manifest"): > - pargs = ['digest'] + pargs > - # We only need to build digests on the first pass. > - tmpsettings.features.discard('digest') > - > checked_for_stale_env = False > > for arg in pargs: looks fine to me -- Brian Dolbec

Re: [gentoo-portage-dev] [PATCH] unpack: fix txz unpack support (bug 600660)

2016-11-24 Thread Brian Dolbec
return 1 > + fi > else > __vecho "unpack ${x}: file > format not recognized. Ignoring." fi looks good, thanks -- Brian Dolbec

Re: [gentoo-portage-dev] [PATCH] repos.conf: support strict-misc-digests attribute (bug 600128)

2016-11-24 Thread Brian Dolbec
| 6 -- > pym/portage/package/ebuild/digestcheck.py | 2 +- > pym/portage/repository/config.py | 18 ++ > 4 files changed, 27 insertions(+), 8 deletions(-) > LGTM -- Brian Dolbec

Re: [gentoo-portage-dev] [PATCH v2] dep_zapdeps: make package selections internally consistent (bug 600346)

2016-11-22 Thread Brian Dolbec
current_higher = (highest_cpv is None or > + vercmp(avail_pkg.version, > highest_cpv.version) > 0) + > + if current_higher or (all_match_current and > not all_match_previous): cp_map[avail_pkg.cp] = avail_pkg > > this_choice = _dep_choice(atoms=atoms, > slot_map=slot_map, looks good -- Brian Dolbec

Re: [gentoo-portage-dev] [PATCH v3] parse_metadata_use: apply English language preference (bug 599060)

2016-11-07 Thread Brian Dolbec
except KeyError: > + pass > + else: > + continue > + > # emulate the Element.itertext() > method from python-2.7 inner_text = [] > stack = [] third time's the charm ;) LGTM -- Brian Dolbec

Re: [gentoo-portage-dev] Vote to revert all changes related to shallow git fetch from bug 552814

2016-11-07 Thread Brian Dolbec
eb0bb334d44c9 > Yeah, this will be best, go for it. -- Brian Dolbec

Re: [gentoo-portage-dev] portage-2.3.2 stable request?

2016-11-06 Thread Brian Dolbec
On Sat, 5 Nov 2016 13:56:44 +0100 Manuel Rüger <mr...@gentoo.org> wrote: > On 05.11.2016 00:15, Zac Medico wrote: > > On 11/04/2016 03:55 PM, Zac Medico wrote: > >> On 11/04/2016 03:47 PM, Brian Dolbec wrote: > >>> On Fri, 4 Nov 2016 13:53:02 -0700 > &g

Re: [gentoo-portage-dev] portage-2.3.2 stable request?

2016-11-04 Thread Brian Dolbec
On Fri, 4 Nov 2016 13:53:02 -0700 Zac Medico <zmed...@gentoo.org> wrote: > On 11/04/2016 01:43 PM, Michał Górny wrote: > > On Fri, 4 Nov 2016 13:19:39 -0700 > > Zac Medico <zmed...@gentoo.org> wrote: > > > >> On 11/04/2016 01:14 PM, Brian Dolbec wrote:

Re: [gentoo-portage-dev] portage-2.3.2 stable request?

2016-11-04 Thread Brian Dolbec
a stable request portage-2.3.2 when the time > comes? I'm not sure. Do we -r1 it adding a patch or two and ask it be stabled? -- Brian Dolbec

Re: [gentoo-portage-dev] Re: [PATCH] _expand_new_virtuals: constrain output for dep_zapdeps (bug 597752)

2016-11-03 Thread Brian Dolbec
> X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=597752 > > Any feedback? Sorry, I was behind on emails from the weekend. This stuff is dabbling into the dep calc voodo ;) But I ddin't see any typo's :) I trust you got it right. -- Brian Dolbec

Re: [gentoo-portage-dev] [PATCH] sync: always pass -q --unmerged to git-update-index

2016-11-03 Thread Brian Dolbec
update_index_cmd = [self.bin_command, > > 'update-index', '-q', '--unmerged', '--refresh'] > > exitcode = > > subprocess.call(update_index_cmd, > > cwd=portage._unicode_encode(self.repo.location)) > > LGTM. +1 LGTM too -- Brian Dolbec

Re: [gentoo-portage-dev] [PATCH] sync: always pass -q to git-update-index

2016-11-03 Thread Brian Dolbec
On Thu, 3 Nov 2016 09:10:14 -0700 Zac Medico <zmed...@gentoo.org> wrote: > On 11/02/2016 11:17 PM, Brian Dolbec wrote: > > On Wed, 2 Nov 2016 21:57:09 -0700 > > Zac Medico <zmed...@gentoo.org> wrote: > > > >> On 11/02/2016 05:17 PM, Zac Medico w

Re: [gentoo-portage-dev] [PATCH] sync: always pass -q to git-update-index

2016-11-03 Thread Brian Dolbec
artin Väth. I suspect we won't hear the end of our breakage of a perfectly working git module until maybe we add enough git-sync-options configurable in repos.conf to account for every possible file system and every possible repo useage/abuse-age... Maybe we should just ship several versions of a git module... one for every use case ;) (kidding) -- Brian Dolbec

Re: [gentoo-portage-dev] [PATCH] emerge-webrsync: use gkeys to verify gpg signatures (bug 597918)

2016-10-27 Thread Brian Dolbec
gs.gentoo.org/show_bug.cgi?id=597918 > --- > bin/emerge-webrsync | 51 > +++ > man/make.conf.5 | 6 -- 2 files changed, 51 insertions(+), 6 > deletions(-) > LGTM -- Brian Dolbec

Re: [gentoo-portage-dev] Leadership election

2016-10-11 Thread Brian Dolbec
h. Brian! > > > > > > > I vote for Brian too. Brian! :) > > ++Brian. > hmm, seems I've been drafted :) -- Brian Dolbec pgpSl0knogBs1.pgp Description: OpenPGP digital signature

Re: [gentoo-portage-dev] Leadership election

2016-10-07 Thread Brian Dolbec
day, unless anyone > objects to this. > - -- > Alexander > alexan...@plaimi.net > https://secure.plaimi.net/~alexander > > Of course I nominate Alexander again :) Sure, voting next week works for me... - -- Brian Dolbec -BEGIN PGP SIGNATURE--

Re: [gentoo-portage-dev] Re: [PATCH] locks: use fcntl.flock if fcntl.lockf is broken (bug 595146)

2016-10-01 Thread Brian Dolbec
or inclusion in > portage-2.3.2. Sorry, been out all day, and again tomorrow... Yeah, looks fine -- Brian Dolbec

Re: [gentoo-portage-dev] [PATCH] AbstractEbuildProcess: disable ipc_daemon under Windows Subsystem for Linux

2016-09-22 Thread Brian Dolbec
self.settings.pop('PORTAGE_EBUILD_EXIT_FILE', None) if self.phase not in self._phases_without_builddir: if 'PORTAGE_BUILDDIR_LOCKED' not in self.settings: -- Brian Dolbec

Re: [gentoo-portage-dev] [Patch] 1/1 New commitmsgfile "cat/pkg: " auto-substitution

2016-09-15 Thread Brian Dolbec
On Thu, 15 Sep 2016 14:47:31 -0700 Zac Medico <zmed...@gentoo.org> wrote: > On 09/15/2016 12:50 PM, Brian Dolbec wrote: > > > > From 08f6d22b366c8dc2968573ebc4fd4f0401ea67b7 Mon Sep 17 00:00:00 > > 2001 From: Brian Dolbec <dol...@gentoo.org> > > Date: Thu,

Re: [gentoo-portage-dev] [Patch] 1/1 New commitmsgfile "cat/pkg: " auto-substitution

2016-09-15 Thread Brian Dolbec
On Thu, 15 Sep 2016 12:50:13 -0700 Brian Dolbec <dol...@gentoo.org> wrote: > From 08f6d22b366c8dc2968573ebc4fd4f0401ea67b7 Mon Sep 17 00:00:00 2001 > From: Brian Dolbec <dol...@gentoo.org> > Date: Thu, 15 Sep 2016 12:45:10 -0700 > Subject: [PATCH] repoman: Update man page

[gentoo-portage-dev] [Patch] 1/1 New commitmsgfile "cat/pkg: " auto-substitution

2016-09-15 Thread Brian Dolbec
From 08f6d22b366c8dc2968573ebc4fd4f0401ea67b7 Mon Sep 17 00:00:00 2001 From: Brian Dolbec <dol...@gentoo.org> Date: Thu, 15 Sep 2016 12:45:10 -0700 Subject: [PATCH] repoman: Update man page and commitmsgfile option Use .lower() on the leading message 9 charachters of hte messag

Re: [gentoo-portage-dev] Resending patchset for C module to help check locale

2016-09-14 Thread Brian Dolbec
On Wed, 14 Sep 2016 17:01:27 -0400 "Anthony G. Basile" <bas...@opensource.dyc.edu> wrote: > As per Brian's request on IRC, here's the patchset for adding a C > module to help check locales. > Merged -- Brian Dolbec

Re: [gentoo-portage-dev] [PATCH] repoman: fix erroneous LICENSE.syntax (bug 591184)

2016-08-14 Thread Brian Dolbec
== "LICENSE"]) > - badprovsyntax = len([z for z in type_list if z == "PROVIDE"]) > - baddepsyntax = len(type_list) != badlicsyntax + badprovsyntax > + badlicsyntax = len([z for z in badsyntax if z[0] == > "LICENSE"]) > + badprovsyntax = len([z for z in badsyntax if z[0] == > "PROVIDE"]) > + baddepsyntax = len(badsyntax) != badlicsyntax + badprovsyntax > badlicsyntax = badlicsyntax > 0 > #badprovsyntax = badprovsyntax > 0 > looks good, thanks for the fast fix Zac. -- Brian Dolbec

Re: [gentoo-portage-dev] [PATCH] depgraph._serialize_tasks: improve runtime cycle handling (bug 590514)

2016-08-07 Thread Brian Dolbec
e digraph (%s nodes):\n\n" % > + > (len(selected_nodes),), noiselevel=-1) > + > cycle_digraph.debug_print() > + > writemsg("\n", noiselevel=-1) + > + if leaves: > + > writemsg("runtime cycle leaf: %s\n\n" % > + > (selected_nodes[0],), noiselevel=-1) > if prefer_asap and > asap_nodes and not selected_nodes: # We failed to find any asap nodes > to merge, so ignore diff --git As usual, we are not resolver guru's, but the code changes look decent enough :) LGTM -- Brian Dolbec

Re: [gentoo-portage-dev] [PATCH v2] GitSync.update: respect sync-depth (bug 552814)

2016-07-14 Thread Brian Dolbec
if exitcode == os.EX_OK and self.repo.sync_depth is > not None: > + reset_cmd = [self.bin_command, 'reset', > '--hard', remote_branch] > + if quiet: > + reset_cmd.append('--quiet') > + exitcode = subprocess.call(reset_cmd, > + > cwd=portage._unicode_encode(self.repo.location)) + > if exitcode != os.EX_OK: > msg = "!!! git pull error in %s" % > self.repo.location self.logger(self.xterm_titles, msg) looks fine -- Brian Dolbec

Re: [gentoo-portage-dev] Re: [PATCH] Add emerge --autounmask-continue option (bug 582624)

2016-07-02 Thread Brian Dolbec
gt; solve that somehow. > > Fixed in v2 by making load_emerge_config update existing RootConfig > instances in-place. looks fine to me -- Brian Dolbec

Re: [gentoo-portage-dev] Re: [PATCH] Add emerge --autounmask-continue option (bug 582624)

2016-07-01 Thread Brian Dolbec
can't be exposed to > options like this should not have root access. yeah, the development work I've been doing for work has me making a bunch of new ebuilds for pkgs not yet in the tree. This feature would make it easier for sure. I also like the idea of this feature. I don't think there will be many users killing their system by overusing it or adding it to EMERGE_DEFAULT_OPTS. -- Brian Dolbec

Re: [gentoo-portage-dev] [PATCH v4] repoman: new QA error: slot operator under '||' alternative

2016-06-25 Thread Brian Dolbec
lp = { > "Ebuild has a dependency that refers to an unknown > package" " (which may be valid if it is a blocker for a > renamed/removed package," " or is an alternative choice provided by > an overlay)"), > + "dependency.badslotop": ( > + "RDEPEND contains ':=' slot operator under '||' > dependency."), "file.executable": ( > "Ebuilds, digests, metadata.xml, Manifest, and > ChangeLog do not need" " the executable bit"), I've merged V4 and it is in the 2.3.0 release. Thank you -- Brian Dolbec

Re: [gentoo-portage-dev] [PATCH] repoman: fix KeyError during manifest generation (bug 585388)

2016-06-20 Thread Brian Dolbec
ions.mode != "manifest" and > self.options.digest != "y": > + if not self.generate_manifest: > # Don't do this when generating manifests, > since that uses # additional keys if spawn_nofetch is called > (RESTRICT and # DEFINED_PHASES). > @@ -286,8 +292,8 @@ class Scanner(object): > if self.kwargs['checks']['ebuild_notadded']: > self.vcs_settings.status.check(checkdir, > checkdir_relative, xpkg) > - manifester = manifest.Manifest(**self.kwargs) > - manifester.update_manifest(checkdir) > + if self.generate_manifest: > + > manifest.Manifest(**self.kwargs).update_manifest(checkdir) > checkdirlist = os.listdir(checkdir) > dynamic_data = { Works for me :) -- Brian Dolbec

Re: [gentoo-portage-dev] [PATCH] unmerge-backup: check BUILD_TIME of existing binary package (bug 586410)

2016-06-19 Thread Brian Dolbec
> + > bintree.dbapi.match('={}'.format(backup_dblink.mycpv))): > + if binpkg.build_time == build_time: > + return os.EX_OK > > self.lockdb() > try: looks fine to me, I trust it'll do the job :) -- Brian Dolbec

Re: [gentoo-portage-dev] [PATCH] repoman: new QA error: slot operator under '||' alternative

2016-06-18 Thread Brian Dolbec
On Sat, 18 Jun 2016 20:37:06 +0100 Sergei Trofimovich <sly...@gmail.com> wrote: > On Sat, 18 Jun 2016 11:02:53 -0700 > Brian Dolbec <dol...@gentoo.org> wrote: > > > > + if runtime: > > > + try: > > > +

Re: [gentoo-portage-dev] [PATCH] repoman: whitespace: add indentation level after newline

2016-06-18 Thread Brian Dolbec
rn [0, "%s" % (e,)] > Looks good other than the "repoman:" in the summary. You may have found this via your repoman changes, but this is a portage namespace file. Plus only one file. so... portage/dep/depcheck.py: Whitespace, add indentation level after newline -- Brian Dolbec

Re: [gentoo-portage-dev] [PATCH] repoman: new QA error: slot operator under '||' alternative

2016-06-18 Thread Brian Dolbec
gt; b/repoman/pym/repoman/qa_data.py index b9475e8..48ab389 100644 > --- a/repoman/pym/repoman/qa_data.py > +++ b/repoman/pym/repoman/qa_data.py > @@ -58,6 +58,8 @@ qahelp = { > "Ebuild has a dependency that refers to an unknown > package" " (which may be valid if it is a blocker for a > renamed/removed package," " or is an alternative choice provided by > an overlay)"), > + "dependency.badslotop": ( > + "RDEPEND contains ':=' slot operator under '||' > dependency."), "file.executable": ( > "Ebuilds, digests, metadata.xml, Manifest, and > ChangeLog do not need" " the executable bit"), -- Brian Dolbec

Re: [gentoo-portage-dev] Enforced OpenPGP signatures

2016-06-15 Thread Brian Dolbec
o have the same rules for committing as the tree does. signed commits, signed pushes - -- Brian Dolbec -BEGIN PGP SIGNATURE- Version: GnuPG v2.1 iQJ8BAEBCgBmBQJXYWniXxSAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRBNUQ3Qzc0RTA4MUNDNzBEQjRBN

Re: [gentoo-portage-dev] New meeting

2016-06-07 Thread Brian Dolbec
h. > > > [0] <https://wiki.gentoo.org/wiki/Project:Portage/Meetings> > - -- > Alexander > berna...@gentoo.org > https://secure.plaimi.net/~alexander > Yeah, will do... Sorry, I slept in... something that doesn't happen oft

Re: [gentoo-portage-dev] New meeting

2016-06-03 Thread Brian Dolbec
ortage/Meetings#Agenda> > - -- > Alexander > berna...@gentoo.org Here it the full list of times: WhenIsGood Results Event: Portage meeting Date: June 7, 2016 Time: 2:00:00 PM Can make it:Brian Dolbec , bernalex, mgorny Add to calendar:iCal export (Outlook, Mac i

Re: [gentoo-portage-dev] [PATCH 3/3] pym/portage/util/locale.py: add a C module to help check locale

2016-05-30 Thread Brian Dolbec
nows more about this so I'll let him be the judge. > - -- > Alexander > berna...@gentoo.org I agree that all 3 look good, But I would say that the other changes Michal proposed should be their own commit(s). This being the first, the others each adding to it. - -- Brian

Re: [gentoo-portage-dev] [PATCH 2/2] pym/portage/util/locale.py: add a C module to help check locale

2016-05-27 Thread Brian Dolbec
gt; __init__.py. Shouldn't that stuff be pulled into a separate file and > imported cleanly? > Yes, there is generally far too much code in many of the __init__.py's. There are many with over 1K LOC -- Brian Dolbec

Re: [gentoo-portage-dev] [PATCH] pym/portage/util/locale.py: add a C module to check locale

2016-05-18 Thread Brian Dolbec
> >> portage, as a side effect, we introduce the machinary for future > >> modules in setup.py. > > Split it into two commits. > > > Read the code, you really can't. > I think he means the setup.py change that adds the extension capability, then add the locale cha

Re: [gentoo-portage-dev] [PATCH] dblink: add locks for parallel-install with blockers (bug 576888)

2016-05-17 Thread Brian Dolbec
On Mon, 16 May 2016 12:20:00 -0700 Zac Medico <zmed...@gentoo.org> wrote: > On 03/14/2016 11:36 AM, Brian Dolbec wrote: > > On Mon, 14 Mar 2016 11:26:23 +0100 > > Alexander Berntsen <berna...@gentoo.org> wrote: > > > >> -BEGIN PGP SIGNED MESSAGE---

Re: [gentoo-portage-dev] [PATCH] pym/portage/util/locale.py: add a C module to check locale

2016-05-17 Thread Brian Dolbec
d code/pkgcore testing. Overall I like it, but I'll let others review the actual code implementation since I'm not an experienced "C" coder. In 30 years, I never did more than hello world a few times in C. And the pascal coding I did in College is more like python than c. -- Brian Dolbec

Re: [gentoo-portage-dev] [PATCH 1/1] Add a test case for PMS-compliant usage of the ROOT variable.

2016-05-11 Thread Brian Dolbec
epoman after I finish getting some in progress changes done so the new repoman code can be released. -- Brian Dolbec

Re: [gentoo-portage-dev] [PATCH] xml-test/missing-elements: test for missing mandatory elements

2016-05-06 Thread Brian Dolbec
rious mandatory elements in the metadata" > +HOMEPAGE="https://wiki.gentoo.org/wiki/GLEP:68; > +LICENSE="HPND" > +SLOT="0" > +KEYWORDS="~amd64" merged thank you -- Brian Dolbec

Re: [gentoo-portage-dev] [PATCH] xml-test/missing-elements: test for missing mandatory elements

2016-05-06 Thread Brian Dolbec
ious mandatory elements in the metadata" > +HOMEPAGE="https://wiki.gentoo.org/wiki/GLEP:68; > +LICENSE="HPND" > +SLOT="0" > +KEYWORDS="~amd64" merged, thank you -- Brian Dolbec

[gentoo-portage-dev] Fw: [PATCH] xml-text/missing-doctype: test for missing DOCTYPE in metadata.xml

2016-05-04 Thread Brian Dolbec
Begin forwarded message: Date: Wed, 4 May 2016 00:14:55 -0700 From: Brian Dolbec <dol...@gentoo.org> To: Göktürk Yüksek <gokt...@binghamton.edu> Subject: Re: [PATCH] xml-text/missing-doctype: test for missing DOCTYPE in metadata.xml On Wed, 4 May 2016 01:57:19 -0400 Göktürk

[gentoo-portage-dev] [patch] repoman: metadata.xml checks re-write

2016-05-03 Thread Brian Dolbec
, individual commits can be looked at via your favourite means. [1] https://github.com/djc/portage/commits/repoman-metadata [2] https://gitweb.gentoo.org/proj/portage.git/ -- Brian Dolbec diff --git a/pym/repoman/_xml.py b/pym/repoman/_xml.py deleted file mode 100644 index 33a536a..000 --- a/pym

Re: [gentoo-portage-dev] [PATCH 2/2] xml-test/missing-attributes: missing mandatory attributes for various tags

2016-05-01 Thread Brian Dolbec
On Sun, 1 May 2016 18:38:50 -0700 Brian Dolbec <dol...@gentoo.org> wrote: > On Sun, 1 May 2016 21:08:47 -0400 > Göktürk Yüksek <gokt...@binghamton.edu> wrote: > > > Check for: > > - type attribute in > > - name attribute in > > - name attribute

Re: [gentoo-portage-dev] [PATCH 1/2] xml-test/missing: test for a package with missing metadata.xml

2016-05-01 Thread Brian Dolbec
Gentoo Foundation > +# Distributed under the terms of the GNU General Public License v2 > +# $Id$ > + > +EAPI=6 > + > +DESCRIPTION="Missing metadata.xml file" > +HOMEPAGE="https://gitweb.gentoo.org/repo/proj/gen-b0rk.git/; > +SRC_URI="" > + > +LICENSE="HPND" > +SLOT="0" > +KEYWORDS="~amd64" Thank you, Please push them -- Brian Dolbec

Re: [gentoo-portage-dev] [PATCH] ArchChecks: don't mix arches between ebuilds

2016-04-24 Thread Brian Dolbec
On Sun, 24 Apr 2016 15:04:57 -0700 Zac Medico <zmed...@gentoo.org> wrote: > On 04/24/2016 02:45 PM, Zac Medico wrote: > > On 04/24/2016 01:00 AM, Brian Dolbec wrote: > >> On Sun, 24 Apr 2016 08:15:56 +0200 > >> Michał Górny <mgo...@gentoo.org> wrote: &g

Re: [gentoo-portage-dev] [PATCH] ArchChecks: don't mix arches between ebuilds

2016-04-24 Thread Brian Dolbec
But this step did prove the basic tightened up modules data interface. And debugged the initial conversion, so I'll be coding the rest of the conversion in the morning. Then I'll apply your xml patches. -- Brian Dolbec pgpXCUQyyOHUM.pgp Description: OpenPGP digital signature

Re: [gentoo-portage-dev] [PATCH] repoman: replace Fuse with Future

2016-04-16 Thread Brian Dolbec
riptions > in metadata.xml # (unless there are any invalids, to avoid noise) > - if kwargs.get('validity_fuse'): > + if valid_state: > for myflag in > muselist.difference(used_useflags): self.qatracker.add_error( > "metadata.warning", > diff --git a/pym/repoman/scanner.py b/pym/repoman/scanner.py > index a9f56e9..e9a8e20 100644 > --- a/pym/repoman/scanner.py > +++ b/pym/repoman/scanner.py > @@ -9,7 +9,7 @@ import portage > from portage import normalize_path > from portage import os > from portage.output import green > -from repoman.fuse import Fuse > +from portage.util.futures import Future > from repoman.modules.commit import repochecks > from repoman.profile import check_profiles, dev_profile_keywords, > setup_profile from repoman.repos import repo_metadata > @@ -232,7 +232,7 @@ class Scanner(object): > 'repolevel': self.repolevel, > 'catdir': catdir, > 'pkgdir': pkgdir, > - 'validity_fuse': Fuse() > + 'validity_future': Future() > } > # need to set it up for ==> self.modules or > some other ordered list for mod in ['Manifests', 'IsEbuild', > 'KeywordChecks', 'FileChecks', Yeah, it's sat long enough with me to be fine with it this way, it is more flexible to handle both default states but only in the code it is used in. It also can work for strings and any other data that isn't normally an instance pointer. Push it and I'll use Future() for those where it is needed in the module_spec func_kwargs. -- Brian Dolbec

Re: [gentoo-portage-dev] [PATCH] egencache --update-changelogs: fix timestamp assumptions (bug 579292)

2016-04-08 Thread Brian Dolbec
[19:06] <dwfreed|phone> git log -m --first-parent --format=%ct -1 . [19:06] so just add the --first-parent option? [19:07] <dwfreed|phone> you want -m toolmod = self.grab(['git', self._work_tree, 'log', '--format=%ct', '-1', '.']) [19:06] <dwfreed|phone> git log -m --first-parent --format=%ct -1 . [19:06] so just add the --first-parent option? [19:07] <dwfreed|phone> you want -m too Don't we need to add the -m --first-parent ??? -- Brian Dolbec

Re: [gentoo-portage-dev] [PATCH] localized_size: handle UnicodeDecodeError (bug 577862)

2016-03-20 Thread Brian Dolbec
KiB') looks good. Also if you haven't looked at the forum thread again. Portage did not fail when he set python 2.7 as the active one. So it is 3.4 only that is failing for him (just those 2 installed). -- Brian Dolbec

Re: [gentoo-portage-dev] [Patch] Repoman rewrite stage2 modularization conversion complete

2016-03-15 Thread Brian Dolbec
ch. It looks like it is not valid for the cvs and svn modules now that they are separate modules. -- Brian Dolbec

Re: [gentoo-portage-dev] [Patch] Repoman rewrite stage2 modularization conversion complete

2016-03-14 Thread Brian Dolbec
On Mon, 14 Mar 2016 17:18:27 -0700 Zac Medico <zmed...@gentoo.org> wrote: > On 03/14/2016 10:52 AM, Brian Dolbec wrote: > > On Mon, 14 Mar 2016 10:22:11 -0700 > > Zac Medico <zmed...@gentoo.org> wrote: > > > >> On 03/14/2016 10:14 AM, Zac Medico wr

Re: [gentoo-portage-dev] [PATCH] dblink: add locks for parallel-install with blockers (bug 576888)

2016-03-14 Thread Brian Dolbec
makes it easier to know that any bugs submitted for .29 that re not repoman specific, apply to .28 as well. But more that if no non-repoman bugs were filed, then that clears .28 for stabilization. - -- Brian Dolbec -BEGIN PGP SIGNATURE- Version: GnuPG v2.1

Re: [gentoo-portage-dev] [Patch] Repoman rewrite stage2 modularization conversion complete

2016-03-14 Thread Brian Dolbec
On Mon, 14 Mar 2016 10:22:11 -0700 Zac Medico <zmed...@gentoo.org> wrote: > On 03/14/2016 10:14 AM, Zac Medico wrote: > > On 03/05/2016 01:37 PM, Brian Dolbec wrote: > > > >> Zac, I'm done with code changes in the rewrite. Ready for a last > >> look bef

Re: [gentoo-portage-dev] [PATCH] egencache --write-timestamp: use write_atomic (bug 577126)

2016-03-12 Thread Brian Dolbec
time.strftime('%s\n' % > TIMESTAMP_FORMAT, time.gmtime())) > + except (EnvironmentError, > portage.exception.PortageException): ret.append(os.EX_IOERR) > else: > ret.append(os.EX_OK) looks fine to me. -- Brian Dolbec

Re: [gentoo-portage-dev] [PATCH] Add sync-git-clone-extra-opts and sync-git-pull-extra-opts

2016-03-10 Thread Brian Dolbec
t is desirable to add these things. > > - -- > Alexander > berna...@gentoo.org commit message fixed and merged... - -- Brian Dolbec -BEGIN PGP SIGNATURE- Version: GnuPG v2.1 iQJ8BAEBCgBmBQJW4fxxXxSAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXR

Re: [gentoo-portage-dev] Next meeting

2016-03-10 Thread Brian Dolbec
On Wed, 9 Mar 2016 12:07:13 -0800 Brian Dolbec <dol...@gentoo.org> wrote: > I've scheduled a meeting for tomorrow, March 10, 2016 at 20:30 UTC > (8:30PM UTC) > > topics: > > 1) next release > 2) repoman stage2 rewrite merge status > 3) repoman stage3 rewr

[gentoo-portage-dev] [PATCH] repoman: Make the output qiuet when options.quiet=True (bug 576958)

2016-03-10 Thread Brian Dolbec
From e13e87a38f404a95ec7705f9fd8920201b632f42 Mon Sep 17 00:00:00 2001 From: Brian Dolbec <dol...@gentoo.org> Date: Thu, 10 Mar 2016 08:11:51 -0800 Subject: [PATCH] repoman: Make the output qiuet when options.quiet=True (bug 576958) In some cases do not output anything. In some cases,

[gentoo-portage-dev] Next meeting

2016-03-09 Thread Brian Dolbec
I've scheduled a meeting for tomorrow, March 10, 2016 at 20:30 UTC (8:30PM UTC) topics: 1) next release 2) repoman stage2 rewrite merge status 3) repoman stage3 rewrite discussion for moving data to the tree/api.gentoo.org 4) open discussion -- Brian Dolbec

Re: [gentoo-portage-dev] [PATCH] bin/portageq: add a matcher to match the orphaned (maintainer-needed) packages

2016-03-08 Thread Brian Dolbec
atted with him in our IRC channel... And I had him change this first patch for the patch v2 which is the one I merged. - -- Brian Dolbec -BEGIN PGP SIGNATURE- Version: GnuPG v2.1 iQJ8BAEBCgBmBQJW3uXKXxSAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXR

Re: [gentoo-portage-dev] [PATCH] portdbapi.aux_get: don't cache in memory unless frozen

2016-03-06 Thread Brian Dolbec
ux_cache_keys: > aux_cache[x] = mydata.get(x, "") > @@ -817,6 +817,7 @@ class portdbapi(dbapi): > > def melt(self): > self.xcache = {} > + self._aux_cache = {} > self.frozen = 0 > >

Re: [gentoo-portage-dev] [PATCH] doebuild: abort for missing DIST digests

2016-02-23 Thread Brian Dolbec
fetchonly=fetchonly, > allow_missing_digests=False, digests=dist_digests): > spawn_nofetch(mydbapi, myebuild, > settings=mysettings, fd_pipes=fd_pipes) Makes sense to be consistent to me :) -- Brian Dolbec

Re: [gentoo-portage-dev] [PATCH] repoman: Deprecate games.eclass, #574082

2016-02-13 Thread Brian Dolbec
, > "distutils": "distutils-r1", > + "games": False, > "gems": "ruby-fakegem", > "mono": "mono-env", > "python": "python-r1 / python-single-r1 / > python-any-r1", Yeah, merge it, it won't be a rebase issue. -- Brian Dolbec

<    1   2   3   4   5   6   >