]> www.vanbest.org Git - sasc-ng.git/commitdiff
add tecfreak's overide cable/terr source patch
authorleslie <unknown>
Sun, 4 Sep 2011 03:29:50 +0000 (11:29 +0800)
committerleslie <unknown>
Sun, 4 Sep 2011 03:29:50 +0000 (11:29 +0800)
override.c

index 1b2b27b9dae927a2a16761262bcca7cd79e30bcc..3cbb21fb0d4c7f0aaf6fea5bbc4473f2222143e4 100644 (file)
@@ -134,7 +134,9 @@ bool cValidityRange::ParseSourceRange(const char *str)
   if((l=sscanf(str,"%a[^-:]-%a[^-:]",&s1,&s2))>=1) {
     if(s1 && (fromSource=cSource::FromString(s1))>0 &&
        (l<2 || (s2 && (toSource=cSource::FromString(s2))>0))) {
-      if(cSource::IsSat(fromSource) && (toSource<0 || (cSource::IsSat(toSource) && toSource>fromSource))) {
+      if((cSource::IsSat(fromSource) && (toSource<0 || (cSource::IsSat(toSource) && toSource>fromSource))) ||
+         (cSource::IsCable(fromSource) && toSource<0) ||
+         (cSource::IsTerr(fromSource) && toSource<0)) {
         res=true;
         }
       else PRINTF(L_CORE_LOAD,"override: SOURCE range error");