Re: nautilus-rpm view



> Anyone had any joy buildling this - my make bombs with regard to librpm
> (my version is 4.1)
> 
> Does it need a specific version of rpm?

this is patch for rpm 4.1. 
but I don't know how self-detect rpmversion in autoconf. 
--- src/nautilus-rpm-view.c.old	2002-08-07 00:02:23.000000000 +0900
+++ src/nautilus-rpm-view.c	2002-12-21 22:44:30.000000000 +0900
@@ -106,6 +106,7 @@
 	gchar *filename = gnome_vfs_get_local_path_from_uri(location);
 	FD_t fd;
 	Header header = NULL;
+	rpmts ts = rpmtsCreate();
 
 	if (!filename) {
 	    nautilus_view_report_load_failed(view);
@@ -118,7 +119,7 @@
 	    goto end;
 	}
 	g_free(filename);
-	if (rpmReadPackageHeader(fd, &header, NULL, NULL, NULL) || !header) {
+	if (rpmReadPackageFile(ts, fd, filename, &header) || !header) {
 	    nautilus_view_report_load_failed(view);
 	    if (header) headerFree(header);
 	    Fclose(fd);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]