Skip to content

Commit 1dc1567

Browse files
committed
.Package file added in RPM plugin packaging
Signed-off-by: ashish-jabble <[email protected]>
1 parent 3f06608 commit 1dc1567

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

plugins/make_rpm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,7 @@ EOF
248248
fi
249249
cp -R ${GIT_ROOT}/python .
250250
cp -R ${GIT_ROOT}/VERSION.${plugin_type}.${plugin_name} ./python/fledge/plugins/${plugin_type}/${plugin_name}
251+
echo ${pkg_name} > ./python/fledge/plugins/${plugin_type}/${plugin_name}/.Package
251252
else
252253
(cd ${GIT_ROOT};
253254
if [ -f requirements.sh ]; then
@@ -261,6 +262,7 @@ EOF
261262
mkdir -p build; cd build; cmake ..; make
262263
fi)
263264
mkdir -p "plugins/${plugin_type_install}/${plugin_install_dirname}"
265+
echo ${pkg_name} > plugins/${plugin_type_install}/${plugin_install_dirname}/.Package
264266
cp -R --preserve=links ${GIT_ROOT}/build/lib* "plugins/${plugin_type_install}/${plugin_install_dirname}" 2>/dev/null || \
265267
cp -R --preserve=links ${GIT_ROOT}/*.json "plugins/${plugin_type_install}/${plugin_install_dirname}" 2>/dev/null || \
266268
echo "Unable to find libraries in ${GIT_ROOT}/build and json config files in ${GIT_ROOT}, cannot proceed..."

0 commit comments

Comments
 (0)