summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2008-06-20 18:07:36 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2008-06-20 18:07:36 +0000
commit548922def6e614a5a89aaf49ac95028d24a3a7b4 (patch)
tree534c4d92bfd34e15b3416ef524a95ee18251ed7a /games-simulation/singularity/files/singularity-0.26a-musicdir.patch
parentstable for x86 (diff)
downloadgentoo-2-548922def6e614a5a89aaf49ac95028d24a3a7b4.tar.gz
gentoo-2-548922def6e614a5a89aaf49ac95028d24a3a7b4.tar.bz2
gentoo-2-548922def6e614a5a89aaf49ac95028d24a3a7b4.zip
old
(Portage version: 2.1.4.4)
Diffstat (limited to 'games-simulation/singularity/files/singularity-0.26a-musicdir.patch')
-rw-r--r--games-simulation/singularity/files/singularity-0.26a-musicdir.patch32
1 files changed, 0 insertions, 32 deletions
diff --git a/games-simulation/singularity/files/singularity-0.26a-musicdir.patch b/games-simulation/singularity/files/singularity-0.26a-musicdir.patch
deleted file mode 100644
index 3a80f1e31d65..000000000000
--- a/games-simulation/singularity/files/singularity-0.26a-musicdir.patch
+++ /dev/null
@@ -1,32 +0,0 @@
-Index: code/g.py
-===================================================================
---- code/g.py (revision 406)
-+++ code/g.py (revision 407)
-@@ -142,14 +142,21 @@
- musicarray = []
- musicarraylen=0
- musicpath=path.join(data_loc, "..", "music")
-+ default_music_available = True
- if not path.isdir(musicpath):
-- makedirs(musicpath)
-- temp_ls = listdir(musicpath)
-- temp_ls_len = len(temp_ls)
-- for file_name in temp_ls:
-- if file_name[-3:] == "ogg" or file_name[-3:] == "mp3":
-- musicarray.append(path.join(musicpath, file_name))
-+ try:
-+ makedirs(musicpath)
-+ except:
-
-+ # We don't have permission to write here. Don't bother
-+ # trying to load music.
-+ default_music_available = False
-+
-+ if default_music_available:
-+ for file_name in listdir(musicpath):
-+ if file_name[-3:] == "ogg" or file_name[-3:] == "mp3":
-+ musicarray.append(path.join(musicpath, file_name))
-+
- #also, grab any user files
- musicpath=path.join(get_save_folder(True), "music")
- if not path.isdir(musicpath):