Ok, thanks for the pointer and help. I'll push it later on this evening, right now I don't have my ssh keys on this machine :) NM Melhores cumprimentos, Nelson M. Marques ________________________________________ De: Vincent Untz [vuntz@opensuse.org] Enviado: terça-feira, 25 de Setembro de 2012 12:52 Para: opensuse-gnome@opensuse.org Assunto: Re: [opensuse-gnome] tiny patch for spec-cleaner Hi, Le mardi 25 septembre 2012, à 00:45 +0100, Nelson Manuel Marques a écrit :
+def replace_lang_macros(s): + return re.sub(r'%find_lang(.*)', r'%find_lang\1 %{?no_lang_C}', s)
Wouldn't this replace "%find_lang %{?no_lang_C} foo" with "%find_lang %{?no_lang_C} foo %{?no_lang_C}"? You probably need to check if %{?no_lang_C} is there before doing the substitution. Cheers, Vincent -- Les gens heureux ne sont pas pressés. -- To unsubscribe, e-mail: opensuse-gnome+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-gnome+owner@opensuse.org