Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aptcc: Not all downloads have to be packages #246

Merged

Conversation

julian-klode
Copy link
Contributor

When the mirror method is used in apt 1.6 or newer, a mirror list is
downloaded prior to any package, causing PackageKit to crash after
casting its item to pkgAcqArchiveSane.

pkgAcqArchiveSane is a local workaround to expose some protected
stuff in pkgAcqArchive, so we first do a dynamic_cast to pkgAcqArchive
which will be nullptr if it is not a pkgAcqArchive and then cast it
statically to pkgAcqArchiveSane.

Bug-Ubuntu: https://launchpad.net/bugs/1754265

CC @ximion

When the mirror method is used in apt 1.6 or newer, a mirror list is
downloaded prior to any package, causing PackageKit to crash after
casting its item to pkgAcqArchiveSane.

pkgAcqArchiveSane is a local workaround to expose some protected
stuff in pkgAcqArchive, so we first do a dynamic_cast to pkgAcqArchive
which will be nullptr if it is not a pkgAcqArchive and then cast it
statically to pkgAcqArchiveSane.

Bug-Ubuntu: https://launchpad.net/bugs/1754265
@dantti dantti merged commit bf4d89a into PackageKit:master Mar 21, 2018
@dantti
Copy link
Collaborator

dantti commented Mar 21, 2018

LGTM Thanks.

@ximion
Copy link
Collaborator

ximion commented Mar 21, 2018

Awesome! I was looking at that crash a few days ago, and it didn't make much sense to me - but this is a perfect explanation! :-)
Thank you for fixing this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants