-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Monday 05 January 2004 23:58, Jeremy Maitin-Shepard wrote: > Loyd Goodbar <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] Homepage: http://www.devrieze.net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQE/+qh7bKx5DBjWFdsRAhnPAKDMEc2BJH1br8WKCNNfZ+uWs5SYmQCcCWGK msSWETZPZOkkou00TzYAhe4= =lVVg -----END PGP SIGNATURE----- -- [EMAIL PROTECTED] mailing list
