search for: dsofhead

Displaying 1 result from an estimated 1 matches for "dsofhead".

Did you mean: dsofheader
2009 Jun 26
0
RPM python subroutine for (epoch, version, release) comparation?
...%epoch-%version-%release?, and so the RPM ?comparing process is simplified as string comparing ? which doesn?t look correct, am I wrong? See the code from the page: ? -------------------------------------------------------------------------------------- file_h = ts.hdrFromFdno(fd) file_ds = file_h.dsOfHeader() inst_ds = inst_h.dsOfHeader() if file_ds.EVR() >= inst_ds.EVR(): print "Package file is same or newer, OK to upgrade." else: print "Package file is older than installed version." -------------------------------------------------------------------------------------- ?...