diff --git a/shutils/metadata.sh b/shutils/metadata.sh index adce703e594..f3fc3350a9a 100644 --- a/shutils/metadata.sh +++ b/shutils/metadata.sh @@ -351,7 +351,9 @@ _EOF $XBPS_REGPKGDB_CMD sanitize-plist ${DESTDIR}/files.plist $XBPS_REGPKGDB_CMD sanitize-plist ${DESTDIR}/props.plist - chmod 644 ${metadir}/flist ${DESTDIR}/files.plist ${DESTDIR}/props.plist + chmod 644 ${DESTDIR}/files.plist ${DESTDIR}/props.plist + [ -f $metadir/flist ] && chmod 644 $metadir/flist + # # Update desktop-file-utils database if package contains # any desktop file in /usr/share/applications.