[arch-dev-public] [PATCH 4/4] Clean-up signatures from ftp directories

Dan McGee dpmcgee at gmail.com
Wed Mar 16 21:08:08 EDT 2011


On Sat, Mar 12, 2011 at 9:27 PM, Allan McRae <allan at archlinux.org> wrote:
> Signed-off-by: Allan McRae <allan at archlinux.org>
I have no idea where this one applies...dbscripts? I have
cron-jobs/ftpdir-cleanup but it doesn't look at all like the diff
hunks you have, and no misc-scripts/ dir at all...

> ---
>  cron-jobs/ftpdir-cleanup         |    4 ++++
>  misc-scripts/ftpdir-cleanup-repo |    5 +++++
>  2 files changed, 9 insertions(+), 0 deletions(-)
>
> diff --git a/cron-jobs/ftpdir-cleanup b/cron-jobs/ftpdir-cleanup
> index 3456e9c..175e56c 100755
> --- a/cron-jobs/ftpdir-cleanup
> +++ b/cron-jobs/ftpdir-cleanup
> @@ -24,6 +24,10 @@ for pkg in *$PKGEXT; do
>  LINKS="$(/usr/bin/find $repopaths -type l -name "$pkg" 2>/dev/null)"
>  if [ -z "$LINKS" ]; then
>        to_cleanup="$to_cleanup $poolpath/$pkg"
> +
> +       if [ -f "$pkg.sig" ]; then
> +               to_cleanup="$to_cleanup $poolpath/$pkg.sig"
> +       fi
>  fi
>  done
>  popd >/dev/null
> diff --git a/misc-scripts/ftpdir-cleanup-repo b/misc-scripts/ftpdir-cleanup-repo
> index 20f297b..ac7c026 100755
> --- a/misc-scripts/ftpdir-cleanup-repo
> +++ b/misc-scripts/ftpdir-cleanup-repo
> @@ -20,6 +20,11 @@ clean_pkgs () {
>         else
>             mv "$pkg" "$CLEANUP_DESTDIR"
>         fi
> +       if [ -h "$pkg.sig" ]; then
> +            rm -f "$pkg.sig"
> +        else
> +            mv "$pkg.sig" "$CLEANUP_DESTDIR"
> +        fi
>     done
>   fi
>  }
> --
> 1.7.4.1
>
>


More information about the arch-dev-public mailing list