Re: Error after commit?
- From: Abel Cheung <abelcheung gmail com>
- To: Ross Golder <ross golder org>
- Cc: gnome-i18n gnome org
- Subject: Re: Error after commit?
- Date: Wed, 10 Aug 2005 11:39:17 +0800
On 8/10/05, Ross Golder <ross golder org> wrote:
> > *Cannot open file /tmp/#cvs-po.lastdir.595. <-- *What's all this about? :\
>
> I'm aware of this. The precommit for the cvs-po-commits-list script (in
> CVSROOT/commitinfo) is creating this temp file based on the parent PID,
> and the corresponding script in postcommit is using it's PID to pick up
> the data prepared during the precommit.
>
> However, for some reason the parent PIDs aren't matching (especially now
> that the precommit for the cvs-po-commits-list hook is spawned from the
> precommit script for the po validation hook). IMHO, a better way needs
> to be found to let the postcommit hook uniquely identify the data
> gathered by the precommit hook. I expect there are shedloads of leftover
> #cvs-po.lastdir.nnnnn files in /tmp.
In this case, how about preparing a tempfile (with mktemp or whatever)
inside check-po-commit.sh, then supply this filename to
po-commits-prep.pl? Though if one said this isn't clean at all, I'd agree...
Abel
>
> Suggestions welcome.
>
> --
> Ross
>
>
> _______________________________________________
> gnome-i18n mailing list
> gnome-i18n gnome org
> http://mail.gnome.org/mailman/listinfo/gnome-i18n
>
--
Abel Cheung (GPG Key: 0xC67186FF)
Key fingerprint: 671C C7AE EFB5 110C D6D1 41EE 4152 E1F1 C671 86FF
--------------------------------------------------------------------
* GNOME Hong Kong - http://www.gnome.hk/
* Opensource Application Knowledge Assoc. - http://oaka.org/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]