Skip to content

Commit

Permalink
0.8.0 - fix minor issues
Browse files Browse the repository at this point in the history
  • Loading branch information
RudraSwat committed Jan 31, 2022
1 parent 14c03d8 commit 6b4344a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions una
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,17 @@ _install() {

info "cloning ${pkgname}"
LC_ALL=C git clone "https://mpr.makedeb.org/${pkgname}.git" 2>&1 | grep -q 'empty repository' && \
( sudo apt-get install -y "${pkgname}" && ( rmdir "${HOME}/.cache/una/pkgs/${pkgname}" &>/dev/null || true ) \
|| fatal "this package doesn't exist or an error occured" ) || true
( sudo apt-get install -y "${pkgname}" && ( ( rmdir "${HOME}/.cache/una/pkgs/${pkgname}" &>/dev/null; \
touch "/tmp/${pkgname}.lock" ) || true ) || fatal "this package doesn't exist or an error occured" ) || true

if [ "$2" != "force" ]; then
LC_ALL=C dpkg-query -W -f='${Status}' "${pkgname}" 2>/dev/null | grep -q "ok installed" && return || true
LC_ALL=C dpkg-query -W -f='${Status}' "${pkgname}" 2>/dev/null | grep -q "ok installed" && return || true;
elif [ "$2" == "force" ] && [[ -f "/tmp/${pkgname}.lock" ]]; then
rm -f "/tmp/${pkgname}.lock"; return;
fi

rm -f "/tmp/${pkgname}.lock"

source "${pkgname}/PKGBUILD"

new_optdepends=()
Expand Down

0 comments on commit 6b4344a

Please sign in to comment.