Skip to content

Commit

Permalink
add code for installing rpm packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrfai committed Dec 11, 2023
1 parent 7799cd5 commit 566ae75
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions lib/subroutines
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,15 @@ install_pkgs() {
fi
cd $debdir || exit 9
m=$(find $dirs -name \*.deb)
if [ -z "$m" ]; then
return
if [ -n "$m" ]; then
echo "Installing .deb files from $debdir"
dpkg --root=$target -R -i $dirs
fi
m=$(find $dirs -name \*.rpm)
if [ -n "$m" ]; then
echo "Installing .rpm files from $debdir"
rpm --root $target -i $m
fi
echo "Installing .deb files from $debdir"
dpkg --root=$target -R -i $dirs
}
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
rwmount() {
Expand Down

0 comments on commit 566ae75

Please sign in to comment.