~laney/sessioninstaller/axi-bytes

« back to all changes in this revision

Viewing changes to sessioninstaller/core.py

  • Committer: Your Name
  • Date: 2014-03-31 10:13:31 UTC
  • mfrom: (141.1.1 sessioninstaller)
  • Revision ID: name@example.com-20140331101331-eqa248k66l5edues
Tweaks to work with the current gstreamer version, thanks Sebastien Bacher

Show diffs side-by-side

added added

removed removed

Lines of Context:
1341
1341
                score -= 10
1342
1342
            provides = []
1343
1343
            for struct in structures:
1344
 
                if pkg.candidate.record["Gstreamer-Version"] != struct.version:
 
1344
                if pkg.candidate.record["Gstreamer-Version"].split(".")[0] != struct.version.split(".")[0]:
1345
1345
                    continue
1346
1346
                if struct.caps:
1347
1347
                    try:
1348
1348
                        pkg_caps = Gst.Caps.from_string(pkg.candidate.record[struct.record])
1349
1349
                    except KeyError:
1350
1350
                        continue
1351
 
                    if not pkg_caps.intersect(struct.caps):
 
1351
                    if pkg_caps.intersect(struct.caps).is_empty():
1352
1352
                        continue
1353
1353
                else:
1354
1354
                    try: