Ugly output when RPM DB is being altered #154

Closed
tradej opened this Issue Feb 17, 2014 · 0 comments

Comments

Projects
None yet
2 participants
Owner

tradej commented Feb 17, 2014

Ugly output when RPM DB is being altered while DA is running. Should be something nicer, a one-line error.

[tradej@destructor dist]$ da crt c -n pokus
INFO: Resolving RPM dependencies ...
Loaded plugins: langpacks, refresh-packagekit
error: rpmdbNextIterator: skipping h#    3803 region trailer: BAD, tag 1667654962 type 1681012018 offset -892887398 count 1697658929
error: rpmdbNextIterator: skipping h#    4486 region trailer: BAD, tag 758132278 type 774974770 offset -808530737 count 808529920
error: rpmdbNextIterator: skipping h#    4498 region trailer: BAD, tag 1667768398 type 1870035232 offset -1013608047 count 1987657842
DevAssistant traceback (most recent call last):
Error: No DevAssistant frames to print.

Traceback (most recent call last):
  File "/usr/bin/da", line 9, in <module>
    load_entry_point('devassistant==0.8.0', 'console_scripts', 'da')()
  File "/usr/lib/python2.7/site-packages/devassistant/cli/cli_runner.py", line 56, in run
    to_run.run(**vars(parsed_args))
  File "/usr/lib/python2.7/site-packages/devassistant/path_runner.py", line 44, in run
    self._run_path_dependencies(parsed_args)
  File "/usr/lib/python2.7/site-packages/devassistant/path_runner.py", line 24, in _run_path_dependencies
    command.Command('dependencies', deps, parsed_args).run()
  File "/usr/lib/python2.7/site-packages/devassistant/command.py", line 28, in run
    return cr.run(self) 
  File "/usr/lib/python2.7/site-packages/devassistant/command_runners.py", line 214, in run
    di.install(struct)
  File "/usr/lib/python2.7/site-packages/devassistant/package_managers.py", line 514, in install
    self._install_dependencies()
  File "/usr/lib/python2.7/site-packages/devassistant/package_managers.py", line 470, in _install_dependencies
    to_install = pkg_mgr.resolve(*to_resolve)
  File "/usr/lib/python2.7/site-packages/devassistant/package_managers.py", line 197, in resolve
    y.resolveDeps()
  File "/usr/lib/python2.7/site-packages/yum/depsolve.py", line 893, in resolveDeps
    for po, dep in self._checkFileRequires():
  File "/usr/lib/python2.7/site-packages/yum/depsolve.py", line 1184, in _checkFileRequires
    self.installedFileProviders = self.rpmdb.fileRequiresData()
  File "/usr/lib/python2.7/site-packages/yum/rpmsack.py", line 970, in fileRequiresData
    for name, flag, evr in pkg.requires:
  File "/usr/lib/python2.7/site-packages/yum/packages.py", line 671, in <lambda>
    requires = property(fget=lambda self: self.returnPrco('requires'))
  File "/usr/lib/python2.7/site-packages/yum/packages.py", line 1395, in returnPrco
    self._populatePrco()
  File "/usr/lib/python2.7/site-packages/yum/packages.py", line 1409, in _populatePrco
    hdr = self._get_hdr()
  File "/usr/lib/python2.7/site-packages/yum/rpmsack.py", line 93, in _get_hdr
    raise Errors.PackageSackError, 'Rpmdb changed underneath us'
yum.Errors.PackageSackError: Rpmdb changed underneath us

@bkabrda bkabrda added Core bug labels Mar 21, 2014

bkabrda added this to the 0.9.0 milestone Mar 21, 2014

tradej was assigned by bkabrda Mar 21, 2014

tradej closed this in 9618ef7 Mar 28, 2014

tradej removed their assignment Sep 4, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment