You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2008-09-08 14:41:25

mutombo
Member
Registered: 2008-05-06
Posts: 10

Problem: new Software dictionary rule for already processed software

i've made a rule for WinSCP to assign the versionnumber from the name to the versiontab in glpi.

regexp /WinSCP (.*)/
version with assign value from regexp.

this worked as expected and all WinSCP with a version in the name got arranged.
But i've missed the newer Versions of WinSCP.
They dont write their versions into the name, so the regexp hasnt worked for them.
winscplj3.jpg

First i tried a simple "Software is WinSCP" "Software assign WinSCP".
i tried around with different regexp like /.*WinSCP.*/ but i hadnt any luck.

finally i renamed every single WinSCP into WinSCP $version and used my old regexp.
that worked!

im not sure if this is working as intended, perhaps i've done something wrong there.

greetings

P.S. the renaming isnt a really good solution, because i need to do that with every new version of this software.

Last edited by mutombo (2008-09-08 14:42:53)

Offline

#2 2008-09-22 10:43:58

beppinu
Member
Registered: 2008-09-19
Posts: 3

Re: Problem: new Software dictionary rule for already processed software

How/where in GLPI i define a rule like that?

Offline

#3 2008-09-22 10:51:16

tsmr
GLPI-DEV
From: Rennes
Registered: 2005-08-26
Posts: 11,632
Website

Re: Problem: new Software dictionary rule for already processed software

/^WinSCP.([0-9]{1,2}.[0-9]{2,2})/

And affect :
- Name : WinSCP
- Version : #0


Xavier Caillaud
Blog GLPI Infotel

Offline

#4 2008-09-22 11:06:32

beppinu
Member
Registered: 2008-09-19
Posts: 3

Re: Problem: new Software dictionary rule for already processed software

Thank you for your answer, but where should i write that text?

Last edited by beppinu (2008-09-22 11:06:48)

Offline

Board footer

Powered by FluxBB