summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/rpm/rpm_5.4.14.bb
diff options
context:
space:
mode:
authorZhixiong Chi <zchi@windriver.com>2015-07-01 15:54:21 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-07-08 00:01:21 +0100
commiteb29cea7296ca62e96fdcfadefcca03b2383ff85 (patch)
treea047cd17ca511fac2c8e2540f19352fd1151b975 /meta/recipes-devtools/rpm/rpm_5.4.14.bb
parent09a5cb0cca109395a4835e25d483019ddd5e773c (diff)
downloadpoky-eb29cea7296ca62e96fdcfadefcca03b2383ff85.tar.gz
rpm: check if the argument(rootpath) exists or be writable
When user execute the command "rpm -qai --root=$dir",if $dir doesn't exist or is unwritable as result of making a typo in rootpath,then it will create dirent $dir and subdirectory. So we should add the check function to fix it before creating relational subdirectory,and warn the incorrect rootpath to user. It just checks the rootpath reasonableness when the user input the argument(--root=/-r=). (From OE-Core rev: dded280d26b2a5ca2a1e4ac787d36cdd13b603d3) Signed-off-by: Zhixiong Chi <zchi@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/rpm/rpm_5.4.14.bb')
-rw-r--r--meta/recipes-devtools/rpm/rpm_5.4.14.bb1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-devtools/rpm/rpm_5.4.14.bb b/meta/recipes-devtools/rpm/rpm_5.4.14.bb
index fb81f12a1f..2e17a91137 100644
--- a/meta/recipes-devtools/rpm/rpm_5.4.14.bb
+++ b/meta/recipes-devtools/rpm/rpm_5.4.14.bb
@@ -93,6 +93,7 @@ SRC_URI = "http://www.rpm5.org/files/rpm/rpm-5.4/rpm-5.4.14-0.20131024.src.rpm;e
93 file://0001-using-poptParseArgvString-to-parse-the-_gpg_check_pa.patch \ 93 file://0001-using-poptParseArgvString-to-parse-the-_gpg_check_pa.patch \
94 file://no-ldflags-in-pkgconfig.patch \ 94 file://no-ldflags-in-pkgconfig.patch \
95 file://rpm-lua-fix-print.patch \ 95 file://rpm-lua-fix-print.patch \
96 file://rpm-check-rootpath-reasonableness.patch \
96 " 97 "
97 98
98# Uncomment the following line to enable platform score debugging 99# Uncomment the following line to enable platform score debugging