From: Michael Orlitzky <mjo@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] RFC: eutils.eclass: More reliable return status for e*_clean.
Date: Fri, 16 Feb 2018 08:06:27 -0500 [thread overview]
Message-ID: <c27d284f-4892-ed2f-85d3-f09bb832931a@gentoo.org> (raw)
In-Reply-To: <23174.39529.765544.519294@a1i15.kph.uni-mainz.de>
On 02/16/2018 03:46 AM, Ulrich Mueller wrote:
>
> Should we take this as an opportunity to split off these three
> functions into their own eclass, e.g. vcs-clean.eclass?
I think this is a good direction to go in. Changing a popular eclass is
always scary, and the more unrelated stuff it contains, the harder it
gets. It's not easy to tell which ebuilds use the part of the eclass
that you're touching, so you wind up testing (or at least worrying
about) them all. There's the metadata regen, too.
To make maintenance easier, I would go one step further and say that
unless two functions need the same variables or call one another, they
belong in separate eclasses. Since ecvs_clean, esvn_clean, and
egit_clean are completely independent of one another, they could go in
separate eclasses -- it's not like you'll need more than one of them in
your ebuild. Then in the future if we need to change egit_clean, we will
know precisely which ebuilds are affected.
next prev parent reply other threads:[~2018-02-16 13:06 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-16 8:46 [gentoo-dev] RFC: eutils.eclass: More reliable return status for e*_clean Ulrich Mueller
2018-02-16 9:57 ` Michał Górny
2018-02-16 18:12 ` [gentoo-dev] RFC v2: " Ulrich Mueller
2018-02-16 18:55 ` Michał Górny
2018-02-16 13:06 ` Michael Orlitzky [this message]
2018-02-16 14:52 ` [gentoo-dev] RFC: " Michał Górny
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c27d284f-4892-ed2f-85d3-f09bb832931a@gentoo.org \
--to=mjo@gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox