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

View File

@ -104,6 +104,9 @@ Options:
-A "Your Company" -A "Your Company"
Full name of the author of the application. Full name of the author of the application.
-e "you@your_company.com"
E-mail address of the maintainer of the application.
-h -h
Display this help Display this help
@ -133,10 +136,11 @@ licensename = ""
licensefile = Filename() licensefile = Filename()
authorid = "" authorid = ""
authorname = "" authorname = ""
authoremail = ""
includeRequires = False includeRequires = False
try: 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: except getopt.error, msg:
usage(1, msg) usage(1, msg)
@ -166,7 +170,9 @@ for opt, arg in opts:
authorid = arg.strip() authorid = arg.strip()
elif opt == '-A': elif opt == '-A':
authorname = arg.strip() authorname = arg.strip()
elif opt == '-e':
authoremail = arg.strip()
elif opt == '-h': elif opt == '-h':
usage(0) usage(0)
else: else:
@ -236,6 +242,7 @@ elif deploy_mode == 'installer':
i.licensefile = licensefile i.licensefile = licensefile
i.authorid = authorid i.authorid = authorid
i.authorname = authorname i.authorname = authorname
i.authoremail = authoremail
i.includeRequires = includeRequires i.includeRequires = includeRequires
if currentPlatform: if currentPlatform: