Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
When the input file name has no extension, just ignore the extension instead of failing outright. This is useful when /dev/stdin is the input filename and there are known to be no dependencies to deal with.
Jan Mikkelsen committed 12 years ago
commit 740aca8c89f206665f81f5e2d000494685f5176f
parent 5f4c27a
1 file changed +1 -3
modified libpkg/pkg_add.c
@@ -242,9 +242,7 @@ pkg_add(struct pkgdb *db, const char *path, unsigned flags, struct pkg_manifest_

	basedir = dirname(path);
	if ((ext = strrchr(path, '.')) == NULL) {
-
		pkg_emit_error("%s has no extension", path);
-
		retcode = EPKG_FATAL;
-
		goto cleanup;
+
		ext = "";
	}

	while (pkg_deps(pkg, &dep) == EPKG_OK) {