summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xobsmirror.sh/obsmirror.sh5
1 files changed, 4 insertions, 1 deletions
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 <<EOF > 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
bgstack15