Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
Error codes cleanup.
jlaffaye committed 15 years ago
commit 6696f33059db40844e836bdefeb5836943b901bb
parent 0c5434f9f8d72db23e34f0ea9e7853f3fb696e37
2 files changed +1 -7
modified libpkg/packing.c
@@ -48,7 +48,7 @@ packing_init(struct packing **pack, const char *path, pkg_formats format)
			archive_read_finish((*pack)->aread);
			archive_write_finish((*pack)->awrite);
			archive_entry_free((*pack)->entry);
-
			return (pkg_error_set(EPKG_FORMAT, "Unsupported format"));
+
			return (pkg_error_set(EPKG_FATAL, "Unsupported format"));
		}
		snprintf(archive_path, sizeof(archive_path), "%s.%s", path, ext);

modified libpkg/pkg.h
@@ -151,12 +151,6 @@ typedef enum {
	 * Can not install the package because some dependencies are unresolved.
	 */
	EPKG_DEPENDENCY,
-
	/**
-
	 * the format requested is not supported 
-
	 */
-
	EPKG_FORMAT,
-
	EPKG_NOT_ORIGIN,
-
	EPKG_NOT_NAME
} pkg_error_t;

#define PKG_LT -1