]> code.ossystems Code Review - openembedded-core.git/commit
rpm: check if the argument(rootpath) exists or be writable
authorZhixiong Chi <zchi@windriver.com>
Wed, 1 Jul 2015 07:54:21 +0000 (15:54 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 7 Jul 2015 22:57:12 +0000 (23:57 +0100)
commitdded280d26b2a5ca2a1e4ac787d36cdd13b603d3
tree4a30b39ad1f827351f7391640daa6b11eee0f0ee
parentf322297a48338ba04481faf3743d05a80a492c1f
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=).

Signed-off-by: Zhixiong Chi <zchi@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-devtools/rpm/rpm/rpm-check-rootpath-reasonableness.patch [new file with mode: 0644]
meta/recipes-devtools/rpm/rpm_5.4.14.bb