def setupPaths(self): # turn off rpm locking via a DSO override. We have to # keep a reference to the handle or else dlclose() will be # called on it. Yes, this is ugly, but for some reason RPM # has a global variable for the location of the lock file # that only gets filled in the first time you ask for the rpm # database lock. Thus you can't use more than one root directory # during any single execution of rpmlib code. assert 'rpm._rpm' not in sys.modules from conary_test import norpmlock norpmlock.open(resources.get_path('conary_test', '_norpmlock.so'))
def setupPaths(self): # turn off rpm locking via a DSO override. We have to # keep a reference to the handle or else dlclose() will be # called on it. Yes, this is ugly, but for some reason RPM # has a global variable for the location of the lock file # that only gets filled in the first time you ask for the rpm # database lock. Thus you can't use more than one root directory # during any single execution of rpmlib code. assert 'rpm._rpm' not in sys.modules from conary_test import norpmlock norpmlock.open(resources.get_path('conary_test', '_norpmlock.so')) if sqlite3.sqlite_version_info() < (3, 7, 0): warnings.warn("conary.sqlite3 is linked against a too-old system " "sqlite that is known to have bugs affecting the " "repository.") # Some transport tests are affected by proxy environment settings for transport in ('http', 'https', 'ftp', 'all', 'no'): name = '%s_proxy' % transport os.environ.pop(name, None) os.environ.pop(name.upper(), None)
def setupPaths(self): # turn off rpm locking via a DSO override. We have to # keep a reference to the handle or else dlclose() will be # called on it. Yes, this is ugly, but for some reason RPM # has a global variable for the location of the lock file # that only gets filled in the first time you ask for the rpm # database lock. Thus you can't use more than one root directory # during any single execution of rpmlib code. assert 'rpm._rpm' not in sys.modules from conary_test import norpmlock norpmlock.open(resources.get_path('conary_test', '_norpmlock.so')) if sqlite3.sqlite_version_info() < (3,7,0): warnings.warn("conary.sqlite3 is linked against a too-old system " "sqlite that is known to have bugs affecting the " "repository.") # Some transport tests are affected by proxy environment settings for transport in ('http', 'https', 'ftp', 'all', 'no'): name = '%s_proxy' % transport os.environ.pop(name, None) os.environ.pop(name.upper(), None)