You're right, I've another question about this it seem possible to have
several INDEX files. I've copied INDEX-6 to INDEX-5 and tryed a cvsup and
pkgdb -F.
So I've updated the patch in order to search INDEX-<freebsd major version>.
Regards,
Bouzéloc Tanguy.
> > I've added
> > INDEX-6 in the search.
>
> While you're at it, you might want to add INDEX-7 as well (that's what's
> being used on 7-CURRENT).
>
> - Bartosz
--- kpackage/fbsdInterface.cpp.orig Tue Feb 7 01:52:53 2006
+++ kpackage/fbsdInterface.cpp Tue Feb 7 02:16:23 2006
@@ -33,6 +33,7 @@
#include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>
+#include <sys/utsname.h>
#include <qstringlist.h>
@@ -376,9 +377,13 @@
}
}
+ // Try /usr/port/INDEX-<major version> on FreeBSD
+ struct utsname fbsdName;
+ if(uname(&fbsdName) != -1 && !strcmp(fbsdName.sysname, "FreeBSD"))
+ bsdPortsIndexItem::processFile(this, QString("/usr/ports/INDEX-").append(*fbsdName.release), false, "/usr/ports");
+
// Try the standard ports tree locations.
bsdPortsIndexItem::processFile(this, "/usr/ports/INDEX", false, "/usr/ports"); // FreeBSD/OpenBSD
- bsdPortsIndexItem::processFile(this, "/usr/ports/INDEX-5", false, "/usr/ports"); // FreeBSD/OpenBSD
bsdPortsIndexItem::processFile(this, "/usr/opt/INDEX", false, "/usr/opt"); // NetBSD
}
_______________________________________________
kde-freebsd mailing list
[email protected]
http://freebsd.kde.org/mailman/listinfo/kde-freebsd