[packagekit] [PATCH] Add get-files

James Bowes jbowes at dangerouslyinc.com
Sun Oct 28 19:08:54 PDT 2007


On 10/28/07, S.Çağlar Onur <caglar at pardus.org.tr> wrote:
> Hi James;
>
> 29 Eki 2007 Pts tarihinde, James Bowes şunları yazmıştı:
> > Attached is a patch series that implements the new backend call
> > get-files, along with sample yum implementation. Also note that
> > get-description no longer sends the file list over D-Bus (though
> > backends are still expected to return it, so things don't break).
> >
> > So what's next?
> > - Changes to gnome-packagekit to support the new Description and Files
> > (next email).
> > - Implement get-files for all backends with get-description.
> > - Remove the file list from all get-description instances, and associated
> >   pk-backend/engine code.
> > - Documentation updates for get-description.
>
> Seems like
>
> @ 0005-Add-GetFiles-helper-code-for-python-backends.patch
>
> +    def get_description(self, package):
> +        '''
> +        Implement the {backend}-get-files functionality
> +        Needed to be implemented in a sub class
> +        '''
> +        self.error(ERROR_NOT_SUPPORTED, "This function is not implemented in this backend")
>
> should be
>
> +    def get_files(self, package):
> +        '''
> +        Implement the {backend}-get-files functionality
> +        Needed to be implemented in a sub class
> +        '''
> +        self.error(ERROR_NOT_SUPPORTED, "This function is not implemented in this backend")

Ok, you found me out. I can't program; I just copy and paste :)

Thanks
-James


More information about the PackageKit mailing list