Skip to content

Commit ae4eadb

Browse files
grooverdanfauust
authored andcommitted
deb-upgrade: get_packages_file_mirror - depends on deb_setup_mariadb_mirror
And this removes a double processing of /etc/os-release
1 parent e1ca7ff commit ae4eadb

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

scripts/deb-upgrade.sh

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,11 @@ bb_log_info "Current test mode: $test_mode"
2929

3030
set -x
3131

32-
source /etc/os-release
33-
34-
if [ "${PRETTY_NAME##*/}" == "sid" ]; then
35-
# Sid has the VERSION_CODENAME of the next
36-
# release which isn't useful to us.
37-
VERSION_CODENAME=sid
38-
fi
39-
4032
# Prepare apt repository configuration for installation of the previous major
4133
# version
4234
deb_setup_mariadb_mirror "$prev_major_version"
4335

36+
# This function depends on the deb_setup_mariadb_mirror sourcing /etc/os-release
4437
get_packages_file_mirror() {
4538
set -u
4639
if ! wget "$baseurl/$ID/dists/$VERSION_CODENAME/main/binary-$(deb_arch)/Packages"

0 commit comments

Comments
 (0)