Skip to content

Commit e564182

Browse files
author
Ozan Çağlayan
committed
A scenario for #9991
1 parent b0ccf01 commit e564182

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

scenarios/bug9991scen.py

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# -*- coding: utf-8 -*-
2+
#
3+
# Scenario : bug9991scen.py
4+
#
5+
# Source : http://bugs.pardus.org.tr/show_bug.cgi?id=9991
6+
#
7+
# Problem : blacklisted system.base packages are still upgraded
8+
#
9+
# Problem Description:
10+
#
11+
# We may assume that the users which are aware of the blacklisting feature are totally aware of the consequences of
12+
# blacklisting a system.base package. Current code forces the upgrade of system.base packages even it's blacklisted.
13+
#
14+
# Expected:
15+
#
16+
# All blacklisted packages should be excluded from upgrade plans.
17+
18+
19+
from pisi.scenarioapi.scenario import *
20+
21+
DBUS = "dbus"
22+
GRUB = "grub"
23+
PISI = "pisi"
24+
KERNEL = "kernel"
25+
BLUEZ = "bluez"
26+
27+
let_repo_had(KERNEL)
28+
let_repo_had(BLUEZ)
29+
let_repo_had(DBUS, with_partof("system.base"))
30+
let_repo_had(PISI, with_partof("system.base"))
31+
let_pisi_had(DBUS, PISI, KERNEL, BLUEZ)
32+
33+
def run():
34+
repo_version_bumped(KERNEL)
35+
repo_version_bumped(BLUEZ)
36+
repo_version_bumped(DBUS)
37+
repo_version_bumped(PISI)
38+
repo_updated_index()
39+
40+
# The packages in /etc/pisi/blacklist should not be upgraded
41+
pisi_upgraded()

0 commit comments

Comments
 (0)