summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorerh <erh>2008-10-13 15:54:24 +0000
committererh <erh>2008-10-13 15:54:24 +0000
commit2ce6e8fd1f4bddbf1e6b39bf083318fd54e9041b (patch)
treedd4c13442acdb00988f5b22485fded95e9a09fbf /pkgtools
parent3a6e5f9d868a47ff2b5f189606f03b7eeac91c4b (diff)
downloadpkgsrc-2ce6e8fd1f4bddbf1e6b39bf083318fd54e9041b.tar.gz
Fix strip_txz() so it actually works even when the extension found isn't
going to be returned. This fixes some issues with automatic installation of dependencies.
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/pkg_install/files/lib/str.c6
-rw-r--r--pkgtools/pkg_install/files/lib/version.h4
2 files changed, 5 insertions, 5 deletions
diff --git a/pkgtools/pkg_install/files/lib/str.c b/pkgtools/pkg_install/files/lib/str.c
index ccd00059b07..dc76af31976 100644
--- a/pkgtools/pkg_install/files/lib/str.c
+++ b/pkgtools/pkg_install/files/lib/str.c
@@ -1,4 +1,4 @@
-/* $NetBSD: str.c,v 1.24 2008/04/26 17:40:01 joerg Exp $ */
+/* $NetBSD: str.c,v 1.25 2008/10/13 15:54:24 erh Exp $ */
#if HAVE_CONFIG_H
#include "config.h"
@@ -11,7 +11,7 @@
#if 0
static const char *rcsid = "Id: str.c,v 1.5 1997/10/08 07:48:21 charnier Exp";
#else
-__RCSID("$NetBSD: str.c,v 1.24 2008/04/26 17:40:01 joerg Exp $");
+__RCSID("$NetBSD: str.c,v 1.25 2008/10/13 15:54:24 erh Exp $");
#endif
#endif
@@ -140,8 +140,8 @@ strip_txz(char *buf, char *sfx, const char *fname)
if (suffixlen >= PKG_SUFFIX_MAX)
errx(EXIT_FAILURE, "too long suffix '%s'", fname);
memcpy(sfx, *suffixp, suffixlen+1);
- return;
}
+ return;
}
/* not found */
diff --git a/pkgtools/pkg_install/files/lib/version.h b/pkgtools/pkg_install/files/lib/version.h
index d994e58bc30..47e7475c966 100644
--- a/pkgtools/pkg_install/files/lib/version.h
+++ b/pkgtools/pkg_install/files/lib/version.h
@@ -1,4 +1,4 @@
-/* $NetBSD: version.h,v 1.106 2008/10/02 20:46:56 joerg Exp $ */
+/* $NetBSD: version.h,v 1.107 2008/10/13 15:54:24 erh Exp $ */
/*
* Copyright (c) 2001 Thomas Klausner. All rights reserved.
@@ -27,6 +27,6 @@
#ifndef _INST_LIB_VERSION_H_
#define _INST_LIB_VERSION_H_
-#define PKGTOOLS_VERSION "20081002"
+#define PKGTOOLS_VERSION "20081013"
#endif /* _INST_LIB_VERSION_H_ */