Changeset 43

Show
Ignore:
Timestamp:
24-09-2008 22:40:43 (5 years ago)
Author:
pcabido
Message:
 
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/util/aptutil.py

    r39 r43  
    122122     
    123123    return "" 
     124 
     125def getSectionPackages(section, list): 
     126    Packages = [] 
     127    for dic in list: 
     128        if getSection(dic['Section']) == section: 
     129            Packages.append(dic) 
     130    return Packages 
    124131 
    125132def setSection(section): 
     
    194201    elif section == "X Window System software": 
    195202        return "x11" 
     203    elif section == "All packages": 
     204        return "all" 
    196205     
    197206    return ""