summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElan Ruusamäe2016-07-05 05:13:20 (GMT)
committerElan Ruusamäe2016-09-06 15:47:34 (GMT)
commita5ad38cc00abd325cb346636990ef02cb14d0ac0 (patch)
tree77aca60a79908dda95147cac0467ad072c10ac44
parenta958d6ce6e3540d977db28f41af029295de30d9b (diff)
downloadcleanbuild-a5ad38cc00abd325cb346636990ef02cb14d0ac0.zip
cleanbuild-a5ad38cc00abd325cb346636990ef02cb14d0ac0.tar.gz
ensure RPMS dir is available
-rwxr-xr-xcleanbuild4
1 files changed, 3 insertions, 1 deletions
diff --git a/cleanbuild b/cleanbuild
index 0622ab7..5ab9520 100755
--- a/cleanbuild
+++ b/cleanbuild
@@ -354,8 +354,10 @@ build_mount_home()
{
$NODEBUG || set -x
mount -o bind $HOME/rpm $CHDIR/$CHHOME/rpm
-}
+ # ensure RPMS dir is available
+ chroot $CHDIR su $USER -c 'mkdir -p $(rpm -E %_rpmdir)'
+}
print_installed()
{