gnu-arch-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnu-arch-users] patch: automatic remove the corrupt revlib revision


From: Andy Tai
Subject: Re: [Gnu-arch-users] patch: automatic remove the corrupt revlib revision
Date: Wed, 30 Nov 2005 14:57:35 -0800 (PST)

Thanks for the patch!  I think this is safe for inclusion for the next release, 
unless if there is
any different opinion.

Andy

--- Derek Zhou <address@hidden> wrote:

> when inode sig checking fails, just rm -rf the revision instead of
> quiting the program. Therefore, the corrupt revision will be replaced
> in the revlib automatically. 
> 
> Derek 
> 
> --- orig/tla/libarch/libraries.c
> +++ mod/tla/libarch/libraries.c
> @@ -314,10 +314,9 @@
>          {
>            if (check_inode_sigs) {
>              if (!arch_valid_inode_sig (rel_peek_str (revision_dirs, 0, 0), 
> archive, revision))
> -              {
> -                safe_printfmt (2, "corrupt library (failed inode signature 
> validation)\n   
> archive: %s\n    revision: %s\nYou should remove this revision from your 
> library.\n",
> -                               archive, revision);
> -                exit (2);
> +              { 
> +                rmrf_file(rel_peek_str (revision_dirs, 0, 0));
> +                continue;
>                }
>            }
>            answer = str_save (0, rel_peek_str (revision_dirs, 0, 0));
> 
> 
> _______________________________________________
> Gnu-arch-users mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/gnu-arch-users
> 
> GNU arch home page:
> http://savannah.gnu.org/projects/gnu-arch/
> 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]