@@ -19,7 +19,7 @@ series = 'xenial'
19
19
20
20
# basic paths
21
21
home = os .getenv ("HOME" )
22
- workdir = home + "/ubuntu- core-builds"
22
+ workdir = home + "/core-builds"
23
23
24
24
# we need to store credentials once for cronned builds
25
25
cachedir = workdir + "/cache"
@@ -29,11 +29,11 @@ def sendMail(arch, stamp, failure, buildlog):
29
29
# send failure mails to defined recipients
30
30
31
31
if buildlog :
32
- mailtext = "ubuntu- core {} snap\n Build requested at {}\n Failed for id: {}\n Link to build log: {}" .format (arch , stamp , failure , buildlog )
33
- mailtext = "build-ubuntu- core: {} " .format (failure )
32
+ mailtext = "core {} snap\n Build requested at {}\n Failed for id: {}\n Link to build log: {}" .format (arch , stamp , failure , buildlog )
33
+ mailtext = "build-core: {} " .format (failure )
34
34
35
35
message = MIMEText (mailtext )
36
- message ['Subject' ] = '%s ubuntu- core snap failed to build !' % arch
36
+ message ['Subject' ] = '%s core snap failed to build !' % arch
37
37
message ['From' ] = 'Snap Auto Builder <%s>' % sender
38
38
message ['To' ] = ", " .join (mailreceivers )
39
39
try :
@@ -49,7 +49,7 @@ pid = str(os.getpid())
49
49
pidfile = workdir + "/build.pid"
50
50
if os .path .isfile (pidfile ):
51
51
print "A pid file %s already exists, it seems like" % pidfile
52
- print "there is already a build-ubuntu -core running."
52
+ print "there is already a lp-build -core running."
53
53
print "exiting !"
54
54
sendMail ("" ,"" ,"pid exists" ,"" )
55
55
sys .exit ()
@@ -123,7 +123,7 @@ if len(failures):
123
123
if buildlog != 'None' :
124
124
print (buildlog )
125
125
arch = str (buildlog ).split ('_' )[4 ]
126
- print ("ubuntu- core snap {} build at {} failed for id: {} log: {}" .format (arch , stamp , failure , buildlog ))
126
+ print ("core snap {} build at {} failed for id: {} log: {}" .format (arch , stamp , failure , buildlog ))
127
127
sendMail (arch , stamp , failure , buildlog )
128
128
129
129
0 commit comments