Allow $repo expansion in 'Server' config lines
commitebad1996149d72cf4a1fe15fe8326f2b4996f585
authorAaron Griffin <aaronmgriffin@gmail.com>
Fri, 18 May 2007 06:24:59 +0000 (18 01:24 -0500)
committerAaron Griffin <aaronmgriffin@gmail.com>
Fri, 18 May 2007 06:24:59 +0000 (18 01:24 -0500)
tree1b450f6ad14aeab110f77737847a86e654468089
parent1381b58ceb36dbb10cee10584a12ef341018c0fa
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 <aaronmgriffin@gmail.com>
lib/libalpm/alpm.c
lib/libalpm/util.c
lib/libalpm/util.h