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

Re: [firstboot] Fixed the eula module to show Red Hat license (#563734)



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 05/03/2010 02:42 AM, Martin Gracik wrote:

> +        try:
> +            path = glob.glob("/usr/share/doc/redhat-release*/EULA")[0]
> +        except IndexError:
> +            lines = "No license file\n"
> +        else:
> +            lines = open(path).readlines()

It might be useful to tell where it was looking for the license file
when it failed.

- -- 
Brian C. Lane <bcl redhat com>
Red Hat / Port Orchard, WA
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iQEVAwUBS98CmRF+jBaO/jp/AQL2Igf/b3HoRS4PshGZ8MOZOtTUrS96rBQG0UR6
XAJVot4E7/e8NzZq/vHLRhpinchauFMdWs8ry6pW639jCbeptHk3hzpiD1tw0asO
gSwuBytZZsv43PC80kz9kuFS10/p2BHKniAqOCrbjZesXOKDvsPsiiYUGHfi2d2e
Ii54QQDZeZXv4vxOA+5irlPIWmcJW5SBSE3Py9mMH46BpynHTITHF5R3xFlsd6ZY
uWlhHVg8S8/PZUA04EskrZsan+unu5wznzAMP7+lDU/GVcsNIMwTtoYQ6TurQls4
qrmYpH11YtCvvetMdFVUCdNwl3sPFi/X/DAuFhOhxElHiJja8/ASzw==
=D7ad
-----END PGP SIGNATURE-----


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