Changes from Version 1 of YumCodeSnippet/ParseRpmFilename

Show
Ignore:
Author:
james (IP: 65.172.155.230)
Timestamp:
02/02/09 15:41:54 (9 years ago)
Comment:

move from code snippets page

Legend:

Unmodified
Added
Removed
Modified
  • YumCodeSnippet/ParseRpmFilename

    v0 v1  
     1Given a filename of an rpm parse out the major information that's available: 
     2 
     3{{{ 
     4#!python 
     5from rpmUtils.miscutils import splitFilename 
     6 
     7myfn = 'a2ps-4.13b-57.1.el5.src.rpm' 
     8 
     9(name, ver, rel, epoch, arch) = splitFilename(myfn) 
     10 
     11}}}