Add Maintainer field to keep debian happy

This commit is contained in:
rdb 2010-12-09 17:07:10 +00:00
parent 70d9503dd0
commit 40f203b543
2 changed files with 11 additions and 2 deletions

View File

@ -169,6 +169,7 @@ class Installer:
self.licensename = ""
self.authorid = "org.panda3d"
self.authorname = ""
self.authoremail = ""
self.licensefile = Filename()
self.standalone = Standalone(p3dfile, tokens)
self.http = self.standalone.http
@ -374,6 +375,7 @@ class Installer:
controlfile = open(Filename(tempdir, "control").toOsSpecific(), "w")
print >>controlfile, "Package: %s" % self.shortname.lower()
print >>controlfile, "Version: %s" % self.version
print >>controlfile, "Maintainer: %s <%s>" % (self.authorname, self.authoremail)
print >>controlfile, "Section: games"
print >>controlfile, "Priority: optional"
print >>controlfile, "Architecture: %s" % arch

View File

@ -104,6 +104,9 @@ Options:
-A "Your Company"
Full name of the author of the application.
-e "you@your_company.com"
E-mail address of the maintainer of the application.
-h
Display this help
@ -133,10 +136,11 @@ licensename = ""
licensefile = Filename()
authorid = ""
authorname = ""
authoremail = ""
includeRequires = False
try:
opts, args = getopt.getopt(sys.argv[1:], 'n:N:v:o:t:P:csl:L:a:A:h')
opts, args = getopt.getopt(sys.argv[1:], 'n:N:v:o:t:P:csl:L:a:A:e:h')
except getopt.error, msg:
usage(1, msg)
@ -166,7 +170,9 @@ for opt, arg in opts:
authorid = arg.strip()
elif opt == '-A':
authorname = arg.strip()
elif opt == '-e':
authoremail = arg.strip()
elif opt == '-h':
usage(0)
else:
@ -236,6 +242,7 @@ elif deploy_mode == 'installer':
i.licensefile = licensefile
i.authorid = authorid
i.authorname = authorname
i.authoremail = authoremail
i.includeRequires = includeRequires
if currentPlatform: