forked from anyc/steam-overlay
/
remove-ubuntu-specifics.patch
40 lines (37 loc) · 1.07 KB
/
remove-ubuntu-specifics.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
--- usr/bin/steam.orig 2012-11-30 16:59:01.798537287 +0400
+++ usr/bin/steam 2012-11-30 16:59:19.828312424 +0400
@@ -108,27 +108,6 @@
fi
}
-function install_extra_packages()
-{
- EXTRA_PACKAGES="$*"
-
- # Get the list of packages which are already installed
- INSTALLED="$(dpkg --get-selections $EXTRA_PACKAGES 2>/dev/null | grep "\binstall$" | cut -f1 | sort)"
-
- # compute the list of packages that need to be installed
- NEEDSINSTALL="$(comm -23 <(echo "$EXTRA_PACKAGES" | tr ' ' '\n' | sort) <(echo "$INSTALLED") | xargs ) "
- NEEDSINSTALL=${NEEDSINSTALL## } # remove leading space
-
- if [ "$NEEDSINSTALL" ]; then
- # Call to actually do the work
- MESSAGE=$"Please enter your password to complete the Steam installation.
-
-Steam needs to install these additional packages:
-"$NEEDSINSTALL
- run_sudo "$MESSAGE" apt-get install $NEEDSINSTALL
- fi
-}
-
function install_bootstrap()
{
STEAMDIR=$1
@@ -158,9 +137,6 @@
# Restore the umask
umask $omask
-
- # Try and install any extra packages
- install_extra_packages jockey-common python-apt
}
function repair_bootstrap()