From d281eab6487605176bd20efcfe21dabbd1514735 Mon Sep 17 00:00:00 2001 From: ticktock35 Date: Sun, 14 Dec 2008 23:51:51 -0500 Subject: opkg: Enable Debian style revision field by default and remove "familiar" specific code. Patch from Richard Purdie git-svn-id: http://opkg.googlecode.com/svn/trunk@41 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- (limited to 'libopkg/pkg_parse.c') diff --git a/libopkg/pkg_parse.c b/libopkg/pkg_parse.c index 0bb4433..a8a1f2a 100644 --- a/libopkg/pkg_parse.c +++ b/libopkg/pkg_parse.c @@ -105,9 +105,7 @@ void parseConffiles(pkg_t * pkg, char * raw) int parseVersion(pkg_t *pkg, char *raw) { char *colon, *eepochcolon; -#ifdef USE_DEBVERSION char *hyphen; -#endif unsigned long epoch; if (!*raw) { @@ -149,23 +147,12 @@ int parseVersion(pkg_t *pkg, char *raw) } strcpy(pkg->version, raw); -#ifdef USE_DEBVERSION hyphen= strrchr(pkg->version,'-'); if (hyphen) { *hyphen++= 0; - if (strncmp("fam", hyphen, 3) == 0) { - pkg->familiar_revision=hyphen+3; - hyphen= strrchr(pkg->version,'-'); - if (hyphen) { - *hyphen++= 0; - pkg->revision = hyphen; - } - } else { pkg->revision = hyphen; - } } -#endif /* fprintf(stderr,"Parsed version: %lu, %s, %s, %s\n", -- cgit v0.9.1