[packagekit] error on remove/install

Ken VanDine ken at vandine.org
Thu Nov 8 11:44:24 PST 2007


Another problem... I admit I haven't built a snapshot of PK in about a
week.  Trying to test this I noticed a couple things.  One, the toolbar
is gone... i guess that is by design.  When I do a search and select a
package, I get errors popping up about getFiles and getRequires aren't
supported by the backend.  If the backend doesn't provide that, the UI
should be calling it at all.  After closing the dialogs, I don't see a
"Remove" button/action... Is that by design?

--Ken

On Thu, 2007-11-08 at 18:41 +0000, Richard Hughes wrote:
> On Thu, 2007-11-08 at 11:40 -0500, Ken VanDine wrote:
> > [pk_engine_remove_package] pk-engine.c:1623 (11:38:31):  RemovePackage
> > method called: 7;dcbaebbe;data,
> > tmpwatch;2.9.10-2-2;x86;/conary.rpath.com at rpl:devel/2.9.10-2-2, 0
> > [pk_strvalidate] pk-common.c:216 (11:38:31):     invalid char in text!
> 
> Ahh, your package_id is tripping up the pk_strvalidate method - it
> thinks you're passing the method dangerous chars and hence refuses it.
> 
> static gboolean
> pk_strvalidate_char (gchar item)
> {
> 	switch (item) {
> 	case ' ':
> 	case '$':
> 	case '`':
> 	case '\'':
> 	case '"':
> 	case '^':
> 	case '[':
> 	case ']':
> 	case '{':
> 	case '}':
> 	case '@':
> 	case '#':
> 	case '\\':
> 	case '<':
> 	case '>':
> 	case '|':
> 		return FALSE;
> 	}
> 	return TRUE;
> }
> 
> So, your package_id is not valid because it contains an @ symbol, which
> is quite clearly a bug as you guys need this char. I've removed this
> char from the blacklist. Can you pull and try once again please? Thanks.
> 
> Richard.
> 
> 
> _______________________________________________
> PackageKit mailing list
> PackageKit at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/packagekit




More information about the PackageKit mailing list