Commit f63465b2 authored by Bernhard Link's avatar Bernhard Link

Added calc_identifier to names.c

parent acf3ce50
......@@ -22,6 +22,10 @@
#include "mprintf.h"
#include "names.h"
char *calc_identifier(const char *codename,const char *component,const char *architecture) {
return mprintf("%s-%s-%s",codename,component,architecture);
}
char *calc_addsuffix(const char *str1,const char *str2) {
return mprintf("%s.%s",str1,str2);
}
......
......@@ -9,5 +9,6 @@ char *calc_filekey(const char *component,const char *sourcename,const char *file
char *calc_srcfilekey(const char *sourcedir,const char *filename);
char *calc_fullfilename(const char *mirrordir,const char *filekey);
char *calc_fullsrcfilename(const char *mirrordir,const char *directory,const char *filename);
char *calc_identifier(const char *codename,const char *component,const char *architecture);
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment