mirror of
https://git.centos.org/centos/centpkg.git
synced 2025-02-24 00:32:55 +00:00
use the centos_cert lib from python-centos
This commit is contained in:
parent
b35b8717cf
commit
0da767d512
1 changed files with 5 additions and 3 deletions
|
@ -18,10 +18,11 @@
|
|||
|
||||
import os
|
||||
import re
|
||||
import sys
|
||||
import warnings
|
||||
|
||||
from pyrpkg import Commands, rpkgError
|
||||
from . import centos_cert
|
||||
from centos import centos_cert
|
||||
from . import cli
|
||||
|
||||
class DistGitDirectory(object):
|
||||
|
@ -152,8 +153,9 @@ class Commands(Commands):
|
|||
|
||||
def load_user(self):
|
||||
try:
|
||||
self._user = centos_cert.read_user_cert()
|
||||
except Exception, e:
|
||||
self._user = centos_cert.CentOSUserCert().CN
|
||||
except:
|
||||
print >>sys.stderr, "Could not load user from cert file"
|
||||
super(Commands, self).load_user()
|
||||
|
||||
# These are the commands defined in the base pyrpkg.Commands class
|
||||
|
|
Loading…
Add table
Reference in a new issue