Fix startup issue when cache directory doesn't exist.
This commit is contained in:
parent
0b9cc0159a
commit
32077c50e4
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=228884
2 changed files with 14 additions and 0 deletions
|
@ -7,6 +7,7 @@
|
|||
|
||||
PORTNAME= banshee
|
||||
PORTVERSION= 1.4.2
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= multimedia audio
|
||||
MASTER_SITES= http://download.banshee-project.org/banshee/
|
||||
DISTNAME= ${PORTNAME}-1-${PORTVERSION}
|
||||
|
|
13
multimedia/banshee/files/patch-fix-startup
Normal file
13
multimedia/banshee/files/patch-fix-startup
Normal file
|
@ -0,0 +1,13 @@
|
|||
--- src/Core/Banshee.Services/Banshee.MediaEngine/TranscoderService.cs.orig 2008-10-01 17:43:36.000000000 +0000
|
||||
+++ src/Core/Banshee.Services/Banshee.MediaEngine/TranscoderService.cs 2009-02-23 09:48:57.000000000 +0000
|
||||
@@ -97,7 +97,9 @@
|
||||
queue = new Queue <TranscodeContext> ();
|
||||
|
||||
try {
|
||||
- Banshee.IO.Directory.Delete (cache_dir, true);
|
||||
+ if (Banshee.IO.Directory.Exists (cache_dir)) {
|
||||
+ Banshee.IO.Directory.Delete (cache_dir, true);
|
||||
+ }
|
||||
} catch {}
|
||||
|
||||
Banshee.IO.Directory.Create (cache_dir);
|
Loading…
Reference in a new issue