Commit 25a1b585 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm-downgrade: fix downgrade to a task

parent 43585a85
...@@ -22,7 +22,7 @@ load_helper epm-check_updated_repo ...@@ -22,7 +22,7 @@ load_helper epm-check_updated_repo
__epm_add_alt_apt_downgrade_preferences() __epm_add_alt_apt_downgrade_preferences()
{ {
[ -r /etc/apt/preferences ] && fatal "/etc/apt/preferences already exists" [ -r /etc/apt/preferences ] && fatal "/etc/apt/preferences already exists"
cat <<EOF | sudorun tee /etc/apt/preferences cat <<EOF | sudocmd tee /etc/apt/preferences
# main repo # main repo
Package: * Package: *
Pin: release c=classic Pin: release c=classic
...@@ -32,6 +32,11 @@ Pin-Priority: 1001 ...@@ -32,6 +32,11 @@ Pin-Priority: 1001
Package: * Package: *
Pin: release c=addon Pin: release c=addon
Pin-Priority: 1101 Pin-Priority: 1101
# overload with test (task) repo
Package: *
Pin: release c=task
Pin-Priority: 1201
EOF EOF
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment