Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Style cleanup
Baptiste Daroussin committed 15 years ago
commit f964efb9c202371773d9c1e18326a39f26a5fffc
parent b5af793
3 files changed +6 -3
modified libpkg/pkg_util.c
@@ -221,7 +221,8 @@ split_chr(char *str, char sep)
}

int
-
is_dir(const char *path) {
+
is_dir(const char *path)
+
{
	struct stat st;

	return (stat(path, &st) == 0 && S_ISDIR(st.st_mode));
modified libpkg/pkg_util.h
@@ -28,6 +28,8 @@ int file_to_buffer(const char *, char **, off_t *);
int format_exec_cmd(char **, const char *, const char *, const char *);
int split_chr(char *, char);
int file_fetch(const char *, const char *);
-
int is_dir(const char *path);
+
int is_dir(const char *);
+

+
int rsa_sign(const char *, const char *, char **);

#endif
modified ports/pkg2ng
@@ -68,7 +68,7 @@ do
	test -n "${OPTIONS}" && CMD_ARGS="${CMD_ARGS} -O ${OPTIONS}"
		
	# register a package only if it's not registered already
-
	if $( pkg info -e ${ORIGIN} ); then
+
	if pkg info -e ${ORIGIN}; then
		echo "package is already registered."
	else
		pkg register -c "${COMMENT}" -d ${DESC} -p /usr/local -n ${PKG} \