public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
From: Michael Tremer <michael.tremer@ipfire.org>
To: development@lists.ipfire.org
Subject: Re: [PATCH] checkrootfiles: exclude update.sh at x86_64 check
Date: Wed, 20 Jul 2022 16:05:38 +0100	[thread overview]
Message-ID: <A081FC86-BA2E-4180-959C-224D4677FB70@ipfire.org> (raw)
In-Reply-To: <20220719165231.28813-1-arne_f@ipfire.org>

[-- Attachment #1: Type: text/plain, Size: 1948 bytes --]

Hello,

Is this check the right way to go if the list of exceptions is becoming longer and longer?

-Michael

> On 19 Jul 2022, at 17:52, Arne Fitzenreiter <arne_f(a)ipfire.org> wrote:
> 
> the updatescript also contains this string so the check
> produce a false positive.
> 
> Signed-off-by: Arne Fitzenreiter <arne_f(a)ipfire.org>
> ---
> tools/checkrootfiles | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/tools/checkrootfiles b/tools/checkrootfiles
> index 1a55a4da9..33bfb16e0 100755
> --- a/tools/checkrootfiles
> +++ b/tools/checkrootfiles
> @@ -2,7 +2,7 @@
> ###############################################################################
> #                                                                             #
> # IPFire.org - A linux based firewall                                         #
> -# Copyright (C) 2007-2015  IPFire Team  info(a)ipfire.org                       #
> +# Copyright (C) 2007-2022  IPFire Team  info(a)ipfire.org                       #
> #                                                                             #
> # This program is free software: you can redistribute it and/or modify        #
> # it under the terms of the GNU General Public License as published by        #
> @@ -35,11 +35,13 @@ fi
> 
> grep -r '/x86_64' ./config/rootfiles/ --exclude gcc --exclude rust-libc \
>     --exclude rust-ppv-lite86 --exclude rust-memchr --exclude *linux* \
> +    --exclude update.sh \
>     --exclude-dir oldcore --exclude-dir x86_64 >/dev/null 2>&1
> if [ "${?}" == "0" ]; then
> 	echo "Error! '/x86_64' in rootfiles files found!"
> 	grep -r '/x86_64' ./config/rootfiles/ --exclude gcc --exclude rust-libc \
>     --exclude rust-ppv-lite86 --exclude rust-memchr --exclude *linux* \
> +    --exclude update.sh \
>     --exclude-dir oldcore --exclude-dir x86_64
> 	echo "Replace by xxxMACHINExxx !"
> fi
> -- 
> 2.36.1
> 


      reply	other threads:[~2022-07-20 15:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-19 16:52 Arne Fitzenreiter
2022-07-20 15:05 ` Michael Tremer [this message]

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=A081FC86-BA2E-4180-959C-224D4677FB70@ipfire.org \
    --to=michael.tremer@ipfire.org \
    --cc=development@lists.ipfire.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