Proposed guideline for init script files

Ville Skyttä ville.skytta at iki.fi
Fri Mar 2 20:45:18 UTC 2007


On Friday 02 March 2007, Toshio Kuratomi wrote:
> changedFiles=os.popen("rpm -V %s" % package)
> for fileLine in changedFiles:
>     fileParts=fileLine.split()
>     filename=fileParts[-1]
>     if is_text_file(filename):
>         shutil.copy2(filename, os.path.join(REPO, filename[1:])
> os.system("%s %s" % (VCSCOMMIT, REPO))
>
> You'll have to write is_text_file() yourself as my imagination ends
> there :-)

rpmlint's FilesCheck.py has istextfile() which could save some work there.
http://rpmlint.zarb.org/cgi-bin/trac.cgi/browser/trunk/FilesCheck.py




More information about the Fedora-maintainers mailing list