From: Paul de Vrieze <pauldv@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] Ebuild new install versus reinstall - how to tell?
Date: Tue, 6 Jan 2004 13:22:19 +0100 [thread overview]
Message-ID: <200401061322.19925.pauldv@gentoo.org> (raw)
In-Reply-To: <87r7yerojm.fsf@jbms.ath.cx>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Monday 05 January 2004 23:58, Jeremy Maitin-Shepard wrote:
> Loyd Goodbar <loyd@blackrobes.net> writes:
> > I'm writing an ebuild, and would like to know whether this is the
> > first time the ebuild installs on the system, or whether it is being
> > rebuilt.
>
> Use `has_version'. See ebuild(5).
This function works. However to make things fool-proof it is normally
better to have a check on whether the package is actually registered
with odbc instead of using the previous install status. a has_version
check has many possibilities for errors when a state is inconsistent.
Paul
- --
Paul de Vrieze
Gentoo Developer
Mail: pauldv@gentoo.org
Homepage: http://www.devrieze.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQE/+qh7bKx5DBjWFdsRAhnPAKDMEc2BJH1br8WKCNNfZ+uWs5SYmQCcCWGK
msSWETZPZOkkou00TzYAhe4=
=lVVg
-----END PGP SIGNATURE-----
--
gentoo-dev@gentoo.org mailing list
next prev parent reply other threads:[~2004-01-06 12:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-05 22:50 [gentoo-dev] Ebuild new install versus reinstall - how to tell? Loyd Goodbar
2004-01-05 22:58 ` Jeremy Maitin-Shepard
2004-01-06 12:22 ` Paul de Vrieze [this message]
2004-01-05 23:09 ` Daniel
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=200401061322.19925.pauldv@gentoo.org \
--to=pauldv@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