On Debian, the GetFiles method only works when pkg is installed #118
Comments
ximion
added the
Backend: aptcc (Debian GNU/Linux)
label
Mar 11, 2016
|
This is not a bug but normal behavior - the information about not-installed files is simply not available on Debian systems. |
ximion
closed this
Mar 11, 2016
purpleidea
commented
Mar 11, 2016
|
@ximion Yikes... Is there a way to trigger this download ahead of time, so that the method will work even when the package isn't installed? For example, |
purpleidea
commented
Mar 12, 2016
IOW, how do I do either of these things in Debian, and if I do them, will the GetFiles method work when the package is not installed? |
|
Aptcc at time wont read data from apt file, it only read file list of
|
|
But you will never get that by default - that's not how Debian works ;-) |
purpleidea
commented
Mar 13, 2016
purpleidea
commented
Mar 13, 2016
|
@ximion How does the user:
Eg: what apt commands or debian settings do i have to run/set? |
|
On the upcoming Debian release ( |
purpleidea
commented
Mar 13, 2016
|
On debian-8, I installed apt-file and updated the cache, but still I did not receive the packagelist with GetFiles until the package was installed. As for why I want the feature, I will PM you a list of a WIP preview blog post explaining this. It's for https://github.com/purpleidea/mgmt Blog post should be out by tomorrow, and I will then paste it here for everyone. |
ximion
reopened this
Mar 13, 2016
purpleidea
commented
Mar 13, 2016
|
Based on a nice discussion with @ximion, if we can get someone to write the aptcc parts so it can use apt-file and get this information to packagekit, this would be a valid feature, although he pointed out that there's a non-zero amount of technical work to accomplish it. Here's hoping we can inspire someone to contribute this :) Thanks to everyone for their time. |
purpleidea
commented
Mar 14, 2016
|
I've now published a blog post on why and how we need and use this feature: https://ttboj.wordpress.com/2016/03/14/automatic-edges-in-mgmt/ if anyone is interested. To elaborate on this in the context of this issue, since we build the config management graph of resources before, we run each resource, if the pkg resource is set to be installed, we won't know the dependencies until after it runs. So it's a catch 22. Unfortunately, only Debian users seem to suffer for this, as it works as expected in Fedora. Until then Debian users can still fully use this tool, but they just won't have automatic edges for packages. Thanks for making it possible! |
purpleidea commentedMar 11, 2016
I'm hoping this isn't a weird bug in my code...
On Fedora-23, the GetFiles method returns useful data whether package is installed or not.
On Debian-8, it only seems to return data once the package is already installed...
If it's not me, then this is a bug :(
Can someone else confirm? Thanks,
James