summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python/python-smartpm/smart-add-for-rpm-ignoresize-check.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/python/python-smartpm/smart-add-for-rpm-ignoresize-check.patch')
-rw-r--r--meta/recipes-devtools/python/python-smartpm/smart-add-for-rpm-ignoresize-check.patch20
1 files changed, 9 insertions, 11 deletions
diff --git a/meta/recipes-devtools/python/python-smartpm/smart-add-for-rpm-ignoresize-check.patch b/meta/recipes-devtools/python/python-smartpm/smart-add-for-rpm-ignoresize-check.patch
index 8a27f2583a..fe98d070d3 100644
--- a/meta/recipes-devtools/python/python-smartpm/smart-add-for-rpm-ignoresize-check.patch
+++ b/meta/recipes-devtools/python/python-smartpm/smart-add-for-rpm-ignoresize-check.patch
@@ -17,14 +17,15 @@ Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
17 smart/backends/rpm/pm.py | 4 ++++ 17 smart/backends/rpm/pm.py | 4 ++++
18 1 file changed, 4 insertions(+) 18 1 file changed, 4 insertions(+)
19 19
20diff --git a/smart/backends/rpm/pm.py b/smart/backends/rpm/pm.py 20Index: git/smart/backends/rpm/pm.py
21index 5da9ee6..f0488ec 100644 21===================================================================
22--- a/smart/backends/rpm/pm.py 22--- git.orig/smart/backends/rpm/pm.py
23+++ b/smart/backends/rpm/pm.py 23+++ git/smart/backends/rpm/pm.py
24@@ -241,6 +241,10 @@ class RPMPackageManager(PackageManager): 24@@ -233,6 +233,11 @@ class RPMPackageManager(PackageManager):
25 except AttributeError: 25 if sysconf.get("rpm-order"):
26 probfilter |= rpm.RPMPROB_FILTER_IGNOREARCH 26 ts.order()
27 27 probfilter = rpm.RPMPROB_FILTER_OLDPACKAGE
28+
28+ if sysconf.get("rpm-ignoresize", False): 29+ if sysconf.get("rpm-ignoresize", False):
29+ probfilter |= rpm.RPMPROB_FILTER_DISKNODES 30+ probfilter |= rpm.RPMPROB_FILTER_DISKNODES
30+ probfilter |= rpm.RPMPROB_FILTER_DISKSPACE 31+ probfilter |= rpm.RPMPROB_FILTER_DISKSPACE
@@ -32,6 +33,3 @@ index 5da9ee6..f0488ec 100644
32 if force or reinstall: 33 if force or reinstall:
33 probfilter |= rpm.RPMPROB_FILTER_REPLACEPKG 34 probfilter |= rpm.RPMPROB_FILTER_REPLACEPKG
34 probfilter |= rpm.RPMPROB_FILTER_REPLACEOLDFILES 35 probfilter |= rpm.RPMPROB_FILTER_REPLACEOLDFILES
35--
361.9.1
37