patches/pygame-02-noconfirm.diff
author jurikm
Sun, 12 Feb 2012 14:04:10 +0000
changeset 8245 383896da4129
parent 2331 bb50963a5336
permissions -rw-r--r--
SFEsauerbraten.spec: add IPS package name
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2331
bb50963a5336 2010-02-03 Brian Cameron <[email protected]>
yippi
parents: 1641
diff changeset
     1
--- pygame-1.9.1release/config_unix.py-orig	2010-02-03 07:52:17.647113797 -0600
bb50963a5336 2010-02-03 Brian Cameron <[email protected]>
yippi
parents: 1641
diff changeset
     2
+++ pygame-1.9.1release/config_unix.py	2010-02-03 07:52:32.877435187 -0600
bb50963a5336 2010-02-03 Brian Cameron <[email protected]>
yippi
parents: 1641
diff changeset
     3
@@ -20,10 +20,6 @@ origincdirs = ['/include', '/include/SDL
1641
bee7722f9bdd 2009-01-21 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     4
 origlibdirs = ['/lib','/lib64','/X11R6/lib']
bee7722f9bdd 2009-01-21 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     5
 
bee7722f9bdd 2009-01-21 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     6
 def confirm(message):
bee7722f9bdd 2009-01-21 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     7
-    "ask a yes/no question, return result"
bee7722f9bdd 2009-01-21 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     8
-    reply = raw_input('\n' + message + ' [Y/n]:')
2331
bb50963a5336 2010-02-03 Brian Cameron <[email protected]>
yippi
parents: 1641
diff changeset
     9
-    if reply and (reply[0].lower()) == 'n':
1641
bee7722f9bdd 2009-01-21 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    10
-        return 0
bee7722f9bdd 2009-01-21 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    11
     return 1
bee7722f9bdd 2009-01-21 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    12
 
bee7722f9bdd 2009-01-21 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    13
 class DependencyProg: