Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
Fix loading +CONTENTS files
Baptiste Daroussin committed 13 years ago
commit c783f45bada72f1a71d48f6dbe43ef4bc6463ace
parent 42df163c41f1bbb3099cced75bec0e0d62bbfd64
1 file changed +2 -2
modified libpkg/pkg_ports.c
@@ -381,7 +381,7 @@ static int
comment_key(struct plist *p, char *line, struct file_attr *a)
{
	char *name, *version;
-
	if (strcmp(line, "DEPORIGIN:") == 0) {
+
	if (strncmp(line, "DEPORIGIN:", 10) == 0) {
		line += 10;
		name = p->pkgdep;
		version = strrchr(name, '-');
@@ -389,7 +389,7 @@ comment_key(struct plist *p, char *line, struct file_attr *a)
		version++;
		pkg_adddep(p->pkg, name, line, version, false);
		p->pkgdep = NULL;
-
	} else if (strcmp(line, "ORIGIN:") == 0) {
+
	} else if (strncmp(line, "ORIGIN:", 7) == 0) {
		line += 7;
		pkg_set(p->pkg, PKG_ORIGIN, line);
	}