Skip to content

Commit

Permalink
beeversion: leave unknown placeholders as is instead of removing them…
Browse files Browse the repository at this point in the history
… from the output
  • Loading branch information
mariux committed Aug 24, 2016
1 parent a2426f2 commit be20391
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/bee_version_output.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,14 +143,16 @@ void print_format(char* s, struct beeversion *v, char *filter_pkgfullname)
if (*(v->subname))
printf("%c%s", *p, v->subname);
p++;
break;
continue;
case 'e':
if (*(v->extraversion))
printf("%c%s", *p, v->extraversion);
p++;
break;
continue;
}
break;
default:
printf("%%%c", *p);
break;
}
continue;
} /* if '%' */
Expand All @@ -169,6 +171,9 @@ void print_format(char* s, struct beeversion *v, char *filter_pkgfullname)
case 'E':
cut_and_print(v->extraversion, '_', 1);
break;
default:
printf("@%c", *p);
break;
}
continue;
} /* if '@' */
Expand Down

0 comments on commit be20391

Please sign in to comment.