-
Notifications
You must be signed in to change notification settings - Fork 166
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
On Debian, the GetFiles method only works when pkg is installed #118
Comments
This is not a bug but normal behavior - the information about not-installed files is simply not available on Debian systems. |
@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, |
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 ;-) |
@ximion How does the user:
Eg: what apt commands or debian settings do i have to run/set? |
On the upcoming Debian release ( |
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. |
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. |
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! |
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
The text was updated successfully, but these errors were encountered: