From 333f8f5d88d06e8a45d69b2463fb1a78c765eb29 Mon Sep 17 00:00:00 2001 From: B Stack Date: Thu, 5 Mar 2020 13:31:38 -0500 Subject: load most headers from obs Release file --- obsmirror.sh/obsmirror.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/obsmirror.sh/obsmirror.sh b/obsmirror.sh/obsmirror.sh index 2b6522c..1b878d7 100755 --- a/obsmirror.sh/obsmirror.sh +++ b/obsmirror.sh/obsmirror.sh @@ -91,9 +91,12 @@ test -n "${VERBOSE}" && unset wget_verbose # create the Release file PKGS="$(wc -c Packages)" PKGS_GZ="$(wc -c Packages.gz)" + old_headers1="$( grep -E '^(Archive|Codename|Origin|Label|Architectures):' Release )" + old_headers2="$( grep -E '^(Description):' Release )" cat < Release -Architectures: all +${old_headers1} Date: $(date -u '+%a, %d %b %Y %T %Z') +${old_headers2} MD5Sum: $(md5sum Packages | cut -d" " -f1) $PKGS $(md5sum Packages.gz | cut -d" " -f1) $PKGS_GZ -- cgit