Only check root when necessary.

This commit is contained in:
jkeating 2007-11-30 15:41:58 -05:00 committed by Jesse Keating
parent a09b885fd8
commit aef1db89aa
2 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,6 @@
* Fri Nov 30 2007 Jesse Keating <jkeating@redhat.com>
- Only check for root if you're doing root level tasks (buildinstall)
* Thu Nov 29 2007 Jesse Keating <jkeating@redhat.com>
- Add a split option to the doCreateIsos call

4
pungi
View File

@ -22,8 +22,8 @@ import pykickstart.version
def main():
# You must be this high to ride.
if os.geteuid () != 0:
# You must be this high to ride if you're going to do root tasks
if os.geteuid () != 0 and (opts.do_all or opts.do_buildinstall):
print >> sys.stderr, "You must run pungi as root"
return 1