Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 330307
Collapse All | Expand All

(-)yum-3.2.27/yum/rpmsack.py (-2 / +4 lines)
Lines 236-242 Link Here
236
        # check provides
236
        # check provides
237
        tag = self.DEP_TABLE['provides'][0]
237
        tag = self.DEP_TABLE['provides'][0]
238
        mi = ts.dbMatch()
238
        mi = ts.dbMatch()
239
        mi.pattern(tag, rpm.RPMMIRE_GLOB, name)
239
        mi.pattern(tag, rpm.RPMMIRE_GLOB, name.encode('us-ascii'))
240
        for hdr in mi:
240
        for hdr in mi:
241
            if hdr['name'] == 'gpg-pubkey':
241
            if hdr['name'] == 'gpg-pubkey':
242
                continue
242
                continue
Lines 261-267 Link Here
261
        ts = self.readOnlyTS()
261
        ts = self.readOnlyTS()
262
        result = {}
262
        result = {}
263
        
263
        
264
        mi = ts.dbMatch('basenames', name)
264
        mi = ts.dbMatch('basenames', name.encode('us-ascii'))
265
        for hdr in mi:
265
        for hdr in mi:
266
            if hdr['name'] == 'gpg-pubkey':
266
            if hdr['name'] == 'gpg-pubkey':
267
                continue
267
                continue
Lines 975-980 Link Here
975
975
976
        ts = self.readOnlyTS()
976
        ts = self.readOnlyTS()
977
        if name is not None:
977
        if name is not None:
978
            if type(name) == type(u''):
979
                name = name.encode('utf8')
978
            mi = ts.dbMatch('name', name)
980
            mi = ts.dbMatch('name', name)
979
        elif arch is not None:
981
        elif arch is not None:
980
            mi = ts.dbMatch('arch', arch)
982
            mi = ts.dbMatch('arch', arch)

Return to bug 330307