Ticket #147 (closed defect: fixed)

Opened 8 months ago

Last modified 8 months ago

chksums problem merging tetex-3.0_p1-r6

Reported by: ajdiaz Owned by:
Priority: normal Milestone: 0.4.4
Component: pkgcore Version: 0.4.2
Keywords: Cc:

Description

When merging tetex-3.0_p1-r6 (from official gentoo portage), get the following error:

>>> Completed installing tetex-3.0_p1-r6 into /tmp/portage/app-text/tetex-3.0_p1-r6/image/

>>> Replacing app-text/tetex-2.0.2-r9 with app-text/tetex-3.0_p1-r6
 * Removing /usr/share/texmf/web2c
Traceback (most recent call last):
  File "/usr/bin/pmerge", line 36, in <module>
    commandline.main(subcommands)
  File "/usr/lib64/python2.5/site-packages/pkgcore/util/commandline.py", line 401, in main
    exitstatus = main_func(options, out, err)
  File "/usr/lib64/python2.5/site-packages/pkgcore/scripts/pmerge.py", line 568, in main
    ret = i.finish()
  File "/usr/lib64/python2.5/site-packages/snakeoil/dependant_methods.py", line 26, in ensure_deps
    r = getattr(self, dep).raw_func(*a, **kw)
  File "/usr/lib64/python2.5/site-packages/pkgcore/interfaces/repo.py", line 179, in transfer
    x()
  File "/usr/lib64/python2.5/site-packages/pkgcore/merge/engine.py", line 277, in execute_hook
    trigger(self, self.csets)
  File "/usr/lib64/python2.5/site-packages/pkgcore/merge/triggers.py", line 120,
 in __call__
    return self.trigger(engine, *self._get_csets(required_csets, csets))
  File "/usr/lib64/python2.5/site-packages/pkgcore/ebuild/triggers.py", line 204, in trigger
    if not simple_chksum_compare(replacement, x):
  File "/usr/lib64/python2.5/site-packages/pkgcore/ebuild/triggers.py", line 138, in simple_chksum_compare
    for k, v in x.chksums.iteritems():
  File "/usr/lib64/python2.5/site-packages/pkgcore/fs/fs.py", line 94, in __getattr__
    raise AttributeError(attr)
AttributeError: chksums

I'm using pkgcore 0.3.4 (from bzr branch release tag:0.3.4) in an amd64 platform. The error looks similar (maybe the same?) to #99 (closed with worksforme).

Attachments

attributeerror.patch (437 bytes) - added by ferringb 8 months ago.
make AttributeError? more descriptive

Change History

comment:1 Changed 8 months ago by ferringb

No other output? If you could attach the CONTENTS from the original pkg, that would be useful also.

comment:2 Changed 8 months ago by ajdiaz

Sorry for delay, I was on holydays :)

I try to attach CONTENTS file, but it's too large (~300K after gzipped), more than allowed in the trac. I upload the compressed file in my server in http://ajdiaz.mine.nu/CONTENTS.gz.

Thx for your work :)

comment:3 Changed 8 months ago by ferringb

  • milestone 0.3.5 deleted

Just confirming, you still get this w/ 0.4.1 right?

Changed 8 months ago by ferringb

make AttributeError? more descriptive

comment:4 Changed 8 months ago by ferringb

@ajdiaz : please apply attributeerror.patch, and report back the updated traceback please.

I see how this can occur now (it's detected a merge of a file over a sym most likely), but need to verify it.

comment:5 Changed 8 months ago by ferringb

  • version set to 0.4.2

*nudge*; either you can run pkgcore 0.4.2 to trigger this (it has the patch I requested), or apply the patch manually.

Once I get the output of that tb, it's likely a 5 minute (max) fix- I just need to verify it's exploding for you via sym + file before I go modifying code.

Help me help you ;)

comment:6 Changed 8 months ago by ferringb

  • status changed from new to closed
  • resolution set to fixed
  • milestone set to 0.4.4

'fixed' via leveling an assertion that will get me the info I need; feel free to reopen/comment if folks encounter it.

comment:7 Changed 8 months ago by ajdiaz

Patch works fine for me :)

Thx for your patience and sorry again for delay.. a bad month ;)

Note: See TracTickets for help on using tickets.