diff options
author | erh <erh@pkgsrc.org> | 2008-10-13 15:54:24 +0000 |
---|---|---|
committer | erh <erh@pkgsrc.org> | 2008-10-13 15:54:24 +0000 |
commit | c8629a84a6520685d1284cf082a361ba80d8b9fd (patch) | |
tree | dd4c13442acdb00988f5b22485fded95e9a09fbf | |
parent | c66f3228d48485d4a0719c98ebdcb2af71098864 (diff) | |
download | pkgsrc-c8629a84a6520685d1284cf082a361ba80d8b9fd.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.
-rw-r--r-- | pkgtools/pkg_install/files/lib/str.c | 6 | ||||
-rw-r--r-- | pkgtools/pkg_install/files/lib/version.h | 4 |
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_ */ |