/[ascend]/trunk/tools/dtar/dtar
ViewVC logotype

Diff of /trunk/tools/dtar/dtar

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2127 by jpye, Thu Dec 17 05:23:36 2009 UTC revision 2128 by jpye, Thu Dec 17 05:35:38 2009 UTC
# Line 209  for d in dependencies: Line 209  for d in dependencies:
209              continue              continue
210    
211          if not i.isInstalled:          if not i.isInstalled:
212                # if it's not installed, it's not OK
213              continue              continue
214    
215          if m[1] and m[2]:          if m[1] and m[2]:
216              cmp = apt_pkg.VersionCompare(m[1], c[m[0]].installed.version)              # if version number is specified
217                cmp = apt_pkg.VersionCompare(c[m[0]].installed.version,m[1])
218              if m[2]=="<<" and cmp<0:              if m[2]=="<<" and cmp<0:
219                  ok = 1                  ok = 1
220              elif m[2]=="<=" and cmp<=0:              elif m[2]=="<=" and cmp<=0:
# Line 222  for d in dependencies: Line 225  for d in dependencies:
225                  ok = 1                  ok = 1
226              elif m[2]==">>" and cmp>0:              elif m[2]==">>" and cmp>0:
227                  ok = 1                  ok = 1
228          ok = 1          else:
229                # no version number specified
230                ok = 1
231      if not ok:      if not ok:
232          depsmissing.append(d)          depsmissing.append(d)
233    

Legend:
Removed from v.2127  
changed lines
  Added in v.2128

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22