~happytocme/prevu/prevu-ppa

« back to all changes in this revision

Viewing changes to prevu-init

  • Committer: John Dong
  • Date: 2006-11-21 06:33:08 UTC
  • Revision ID: john.dong@gmail.com-20061121063308-qufi0dsksvpjnwxk
Make instructions for becoming root more clear (closes bug 72668). Also corrected DIST/DISTRO typo

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 
21
21
import os
22
22
import sys
23
 
if os.getuid():
24
 
  raise OSError("You need to be root!")
 
23
 
25
24
  
26
25
#Initialize target distribution version info
27
26
#If environment variable DIST is present, we shall use that.
34
33
  print >> sys.stderr, DIST
35
34
else:
36
35
  print >> sys.stderr, "I: Building against specified distro:", DIST
37
 
 
 
36
if os.getuid():
 
37
  raise OSError("You need to be root! (Try: DIST=%s sudo %s)" % (DIST,sys.argv[0]))
38
38
DIRS=('builds',DIST+"-debs",'src')
39
39
for i in DIRS:
40
40
  os.system('mkdir -p /var/cache/prevu/'+i)