From ebad1996149d72cf4a1fe15fe8326f2b4996f585 Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Fri, 18 May 2007 01:24:59 -0500 Subject: Allow $repo expansion in 'Server' config lines Small change (addition of a 'strreplace' function) which replaces any $repo tokens found in a server line with the name of the repo or section being processed. While this is more simplistic than suggestions on flyspray, it works and I think it is cleaner. Merits can be discussed further. Ref: FS#6389 Signed-off-by: Aaron Griffin --- lib/libalpm/util.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/libalpm/util.h') diff --git a/lib/libalpm/util.h b/lib/libalpm/util.h index b98d8a7a..a1551273 100644 --- a/lib/libalpm/util.h +++ b/lib/libalpm/util.h @@ -48,6 +48,7 @@ int _alpm_makepath(const char *path); int _alpm_copyfile(const char *src, const char *dest); char *_alpm_strtoupper(char *str); char *_alpm_strtrim(char *str); +char *_alpm_strreplace(const char *str, const char *needle, const char *replace); int _alpm_lckmk(const char *file); int _alpm_lckrm(const char *file); int _alpm_unpack(const char *archive, const char *prefix, const char *fn); -- cgit v1.2.3-24-g4f1b