[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnu-arch-users] trying out todays debian build
From: |
Johannes Berg |
Subject: |
Re: [Gnu-arch-users] trying out todays debian build |
Date: |
Wed, 24 Dec 2003 04:50:56 +0100 |
On Wed, 2003-12-17 at 02:38, Johannes Berg wrote:
> 6) tla commit creates a log file if none exists, and if you don't change
> it, then it exits saying:
> arch_make_edit_log: log file is unmodified, aborting
>
> Thats great, however, it should delete the file right after, because
> otherwise a subsequent commit will use the empty log.
Obviously, this was easy. Here's a patch:
--- orig/libarch/cmd-commit.c
+++ mod/libarch/cmd-commit.c
@@ -544,6 +544,7 @@
if (!str_cmp (text, new_text))
{
safe_printfmt (2, "arch_make_edit_log: log file is unmodified,
aborting\n");
+ safe_unlink (log_path);
exit (2);
}
}
johannes
--
http://www.sipsolutions.de/
GnuPG key: http://www.sipsolutions.de/keys/JohannesBerg.asc
Key-ID: 9AB78CA5 Johannes Berg <address@hidden>
Fingerprint = AD02 0176 4E29 C137 1DF6 08D2 FC44 CF86 9AB7 8CA5