Ticket #959: vflags.patch

File vflags.patch, 903 bytes (added by Joe Digilio <[email protected]…>, 12 years ago)
  • /usr/lib/python2.4/site-packages/Bcfg2/Client/Tools/YUMng.py

    old new  
    427427            stat['verify_fail'] = False 
    428428            stat['pkg'] = entry 
    429429            stat['modlist'] = modlist 
     430            verify_flags = inst.get('verify_flags','').lower().replace(' ','').split(',') 
    430431 
    431432            if len(POs) == 0: 
    432433                # Package not installed 
     
    495496                for p in probs: 
    496497                    if p.type == 'missing' and os.path.islink(fn): 
    497498                        continue 
     499                    elif 'no'+p.type in verify_flags: 
     500                        continue 
    498501                    if p.type not in ['missingok', 'ghost']: 
    499502                        tmp.append((p.type, p.message)) 
    500503                if tmp != []: