Re: Proposed guideline for init script files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
Fedora-maintainers mailing list
Fedora-maintainers@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-maintainers

--
Fedora-maintainers-readonly mailing list
Fedora-maintainers-readonly@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-maintainers-readonly

[Index of Archives]     [Fedora Users]     [Fedora Development]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux