Dne 17.10.2011 14:04, jsuchome@svn2.opensuse.org napsal(a):
- ret_path = sformat ("%1/config%2.xml",
Directory::tmpdir,
mergestring (splitstring (xsl_file, "/ ."), "-"));
Um, why is there "/ ." -> "-" change? Looks strange, could you add a comment so it's clear why the change is needed?
--
Ladislav Slezák Appliance department / YaST Developer Lihovarská 1060/12 190 00 Prague 9 / Czech Republic tel: +420 284 028 960 lslezak@suse.com SUSE
Dne St 19. října 2011 07:58:07 Ladislav Slezak napsal(a):
Dne 17.10.2011 14:04, jsuchome@svn2.opensuse.org napsal(a):
- ret_path = sformat ("%1/config%2.xml",
Directory::tmpdir,
mergestring (splitstring (xsl_file, "/ ."), "-"));
Um, why is there "/ ." -> "-" change? Looks strange, could you add a comment so it's clear why the change is needed?
Because the resulting string is used for creating the file name. I think it should be visible frm the code.
Jiri
Dne 19.10.2011 10:41, Jiri Suchomel napsal(a):
Dne St 19. října 2011 07:58:07 Ladislav Slezak napsal(a):
Dne 17.10.2011 14:04, jsuchome@svn2.opensuse.org napsal(a):
- ret_path = sformat ("%1/config%2.xml",
Directory::tmpdir,
mergestring (splitstring (xsl_file, "/ ."), "-"));
Um, why is there "/ ." -> "-" change? Looks strange, could you add a comment so it's clear why the change is needed?
Because the resulting string is used for creating the file name. I think it should be visible frm the code.
Yeah, you are right, I misunderstood that...
--
Ladislav Slezák Appliance department / YaST Developer Lihovarská 1060/12 190 00 Prague 9 / Czech Republic tel: +420 284 028 960 lslezak@suse.com SUSE