Skip to content
Snippets Groups Projects
Commit 968e9ecb authored by Diego Giovane Pasqualin's avatar Diego Giovane Pasqualin
Browse files

Fix verification for wine repository

parent a17eb152
No related branches found
No related tags found
No related merge requests found
...@@ -3,12 +3,16 @@ ...@@ -3,12 +3,16 @@
REQUIRED_PKGS="wine gcc-mingw-w64 p7zip-full autoconf" REQUIRED_PKGS="wine gcc-mingw-w64 p7zip-full autoconf"
pkgs_to_install="" pkgs_to_install=""
for pkg in $REQUIRED_PKGS; do for pkg in $REQUIRED_PKGS; do
if ! dpkg --get-selections $pkg | grep -q -w install$; then if ! dpkg --get-selections $pkg | grep -q -w 'install$'; then
pkgs_to_install="$pkgs_to_install $pkg" pkgs_to_install="$pkgs_to_install $pkg"
fi fi
done done
test -z $pkgs_to_install || sudo add-apt-repository ppa:ubuntu-wine/ppa || sudo update apt-get installsudo apt-get install $pkgs_to_install -y if test -n "$pkgs_to_install"; then
sudo add-apt-repository ppa:ubuntu-wine/ppa
sudo apt-get update update
sudo apt-get install $pkgs_to_install -y
fi
required_wine_pkgs="/tmp/nsis-2.45.exe /tmp/python-2.7.5.msi /tmp/py2exe.exe /tmp/pywin32.exe /tmp/wmi.exe" required_wine_pkgs="/tmp/nsis-2.45.exe /tmp/python-2.7.5.msi /tmp/py2exe.exe /tmp/pywin32.exe /tmp/wmi.exe"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment