summaryrefslogtreecommitdiff
path: root/lib/libalpm/util.c
diff options
context:
space:
mode:
authorAaron Griffin <aaron@archlinux.org>2006-11-15 07:50:37 +0000
committerAaron Griffin <aaron@archlinux.org>2006-11-15 07:50:37 +0000
commit00ce9ea7394e6e21010d3758e5d949e2b449f64d (patch)
tree1e91d8c80cf2e535978b6fa51031765460234c9d /lib/libalpm/util.c
parent74e780f25df5642e19e6b8cc42ff1432fb7fe1b9 (diff)
downloadpacman-00ce9ea7394e6e21010d3758e5d949e2b449f64d.tar.xz
* Initial changes to gensync - makepkg changes were not checked in from another
machine - still pending * Addition of _alpm_pkg_makefilename to simplify the with/without -ARCH prefix scheme we're going with for the interim
Diffstat (limited to 'lib/libalpm/util.c')
-rw-r--r--lib/libalpm/util.c40
1 files changed, 0 insertions, 40 deletions
diff --git a/lib/libalpm/util.c b/lib/libalpm/util.c
index 38b0bced..ddaecebb 100644
--- a/lib/libalpm/util.c
+++ b/lib/libalpm/util.c
@@ -641,44 +641,4 @@ void _alpm_time2string(time_t t, char *buffer)
}
}
-/* internal */
-char *_supported_archs[] = {
- "i586",
- "i686",
- "ppc",
- "x86_64",
-};
-
-char *_alpm_pkgname_has_arch(char *pkgname)
-{
- /* TODO remove this when we transfer everything over to -ARCH
- *
- * this parsing sucks... it's done to support
- * two package formats for the time being:
- * package-name-foo-1.0.0-1-i686
- * and
- * package-name-bar-1.2.3-1
- */
- int i = 0;
- char *arch, *cmp, *p;
-
- if((p = strrchr(pkgname, '-'))) {
- for(i=0; i < sizeof(_supported_archs)/sizeof(char*); ++i) {
- cmp = p+1;
- arch = _supported_archs[i];
-
- /* whee, case insensitive compare */
-
- while(*arch && *cmp && tolower(*arch++) == tolower(*cmp++)) ;
- if(*arch || *cmp) continue;
-
- return p;
- }
- }
- return NULL;
-}
-
-
-
-
/* vim: set ts=2 sw=2 noet: */