[packagers] Snippet to parse SRPM filename

Who Knows quien-sabe at metaorg.com
Wed Aug 8 05:36:58 CEST 2007


Anyone have a bullet proof script or regex to separate an SRPM into its 
package, version, release, disttag components?

98% is easy, but those other 2% of what I assume are non-standard seem 
tricky.

Of course when I say non-standard, I am not referring to the rpmforge 
rpms. :)

I am actually parsing the original dist/extras srpms names.

Thanks,
Jim



More information about the packagers mailing list