Skip to content

Commit

Permalink
beeversion: fix parser to set suffix to .bee*
Browse files Browse the repository at this point in the history
suffix was introduced but never really parsed in the past.
  • Loading branch information
mariux committed Aug 12, 2011
1 parent d6ecce6 commit 780b6a5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/beeversion/parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,12 @@ int parse_version(char *string, struct beeversion *v)
s = p+1;
}

/* extract suffix .bee* */
if((p=strstr(s, ".bee"))) {
v->suffix = p+1;
*p=0;
}

/* extract architecture if known.. */
if((p=strrchr(s, '.')) && !strchr(++p, '-')) {
struct utsname unm;
Expand Down

0 comments on commit 780b6a5

Please sign in to comment.