Skip to content

Commit

Permalink
feat: Updated lib/functions/artifacts/artifact-arm
Browse files Browse the repository at this point in the history
  • Loading branch information
sweep-nightly[bot] authored Sep 18, 2023
1 parent a5a0cb1 commit d93ccde
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions lib/functions/artifacts/artifact-armbian-base-files.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,18 +104,18 @@ function compile_armbian-base-files() {
run_tool_batcat --file-name "${artifact_name}/DEBIAN/conffiles" "${destination}/DEBIAN/conffiles"
fi

# Let's hack at it. New Maintainer and Version...
cat <<- EOD >> "${destination}/DEBIAN/control.new"
Maintainer: $MAINTAINER <$MAINTAINERMAIL>
Version: ${artifact_version}
EOD
# Keep everything else from original
cat "${destination}/DEBIAN/control" | grep -vP '^(Maintainer|Version):' >> "${destination}/DEBIAN/control.new"
# Directly compare and update Maintainer and Version
cat <<- EOD >> "${destination}/DEBIAN/control.new"
Maintainer: $MAINTAINER <$MAINTAINERMAIL>
Version: ${artifact_version}
EOD
# Keep everything else from original
cat "${destination}/DEBIAN/control" | grep -vP '^(Maintainer|Version):' >> "${destination}/DEBIAN/control.new"

# Replace 'Debian' with 'Armbian'.
sed -i "s/Debian/${VENDOR}/g" "${destination}/DEBIAN/control.new"
# Directly replace 'Debian' with 'Armbian'.
sed -i "s/Debian/${VENDOR}/g" "${destination}/DEBIAN/control.new"

mv "${destination}/DEBIAN/control.new" "${destination}/DEBIAN/control"
mv "${destination}/DEBIAN/control.new" "${destination}/DEBIAN/control"

# Change etc/os-release, etc/issue, etc/issue.net, and DEBIAN/conffiles

Expand Down Expand Up @@ -244,4 +244,4 @@ function artifact_armbian-base-files_obtain_from_remote_cache() {

function artifact_armbian-base-files_deploy_to_remote_cache() {
upload_artifact_to_oci
}
}

0 comments on commit d93ccde

Please sign in to comment.