OSDN Git Service

fix installer
authorgn64_jp <gn64_jp@4e526526-5e11-4fc0-8910-f8fd03428081>
Fri, 17 Feb 2012 03:59:42 +0000 (03:59 +0000)
committergn64_jp <gn64_jp@4e526526-5e11-4fc0-8910-f8fd03428081>
Fri, 17 Feb 2012 03:59:42 +0000 (03:59 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/rec10@916 4e526526-5e11-4fc0-8910-f8fd03428081

rec10/trunk/src/scan_ch.py

index 16290bd..f2fc62a 100644 (file)
@@ -87,11 +87,14 @@ def checkTs(ch):
     if os.path.exists(os.path.join(tmppath,"ch_"+str(ch)+".ts.b25")):
         os.remove(os.path.join(tmppath,"ch_"+str(ch)+".ts.b25"))
     tv2ts.tv2b25ts(os.path.join(tmppath,"ch_"+str(ch)+".ts"), ch, "1")
     if os.path.exists(os.path.join(tmppath,"ch_"+str(ch)+".ts.b25")):
         os.remove(os.path.join(tmppath,"ch_"+str(ch)+".ts.b25"))
     tv2ts.tv2b25ts(os.path.join(tmppath,"ch_"+str(ch)+".ts"), ch, "1")
+    if os.path.exists(os.path.join(tmppath,"ch_"+str(ch)+".ts.b25")):
+        os.remove(os.path.join(tmppath,"ch_"+str(ch)+".ts.b25"))
     if os.path.exists(os.path.join(tmppath,"ch_"+str(ch)+".ts")):
         os.remove(os.path.join(tmppath,"ch_"+str(ch)+".ts"))
         return 1
     else:
         return 0
     if os.path.exists(os.path.join(tmppath,"ch_"+str(ch)+".ts")):
         os.remove(os.path.join(tmppath,"ch_"+str(ch)+".ts"))
         return 1
     else:
         return 0
+
 def addCh(ch,bctype,chtxthead):
     prglist=getChProgNum(ch)##[prglist,logt]
     for lstr in prglist[0]:
 def addCh(ch,bctype,chtxthead):
     prglist=getChProgNum(ch)##[prglist,logt]
     for lstr in prglist[0]: