Skip to content

Commit 1581b44

Browse files
committed
drop remaining references to ubuntu-core
1 parent 6328ae5 commit 1581b44

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

cron-scripts/README

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
This script triggers a build of the official Ubuntu Core snap package at:
1+
This script triggers a build of the official Core snap package at:
22

3-
https://code.launchpad.net/~snappy-dev/+snap/ubuntu-core
3+
https://code.launchpad.net/~snappy-dev/+snap/core
44

5-
If you have a personal branch of lp:ubuntu-core-snap (using your own PPAs
5+
If you have a personal branch of lp:core-snap (using your own PPAs
66
during build for injecting test packages etc...), then please adjust the
7-
variables at the top of lp-build-ubuntu-core to match your needed targets.
7+
variables at the top of lp-build-core to match your needed targets.
88
(do not forget to fix the mail receipients too)
99

1010
There is an example crontab to show how the script should be invoked by cron

cron-scripts/crontab.example

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
30 4 * * * /home/ogra/ubuntu-core-builds/lp-build-ubuntu-core >>/home/ogra/ubuntu-core-builds/build.log 2>&1
1+
45 4 * * * /home/ogra/core-builds/lp-build-core >>/home/ogra/core-builds/build.log 2>&1

cron-scripts/lp-build-ubuntu-core cron-scripts/lp-build-core

+6-6
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ series = 'xenial'
1919

2020
# basic paths
2121
home = os.getenv("HOME")
22-
workdir = home+"/ubuntu-core-builds"
22+
workdir = home+"/core-builds"
2323

2424
# we need to store credentials once for cronned builds
2525
cachedir = workdir+"/cache"
@@ -29,11 +29,11 @@ def sendMail(arch, stamp, failure, buildlog):
2929
# send failure mails to defined recipients
3030
sender = '[email protected]'
3131
if buildlog:
32-
mailtext = "ubuntu-core {} snap\nBuild requested at {}\nFailed for id: {}\nLink to build log: {}".format(arch, stamp, failure, buildlog)
33-
mailtext = "build-ubuntu-core: {} ".format(failure)
32+
mailtext = "core {} snap\nBuild requested at {}\nFailed for id: {}\nLink to build log: {}".format(arch, stamp, failure, buildlog)
33+
mailtext = "build-core: {} ".format(failure)
3434

3535
message = MIMEText(mailtext)
36-
message['Subject'] = '%s ubuntu-core snap failed to build !' % arch
36+
message['Subject'] = '%s core snap failed to build !' % arch
3737
message['From'] = 'Snap Auto Builder <%s>' % sender
3838
message['To'] = ", ".join(mailreceivers)
3939
try:
@@ -49,7 +49,7 @@ pid = str(os.getpid())
4949
pidfile = workdir+"/build.pid"
5050
if os.path.isfile(pidfile):
5151
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."
5353
print "exiting !"
5454
sendMail("","","pid exists","")
5555
sys.exit()
@@ -123,7 +123,7 @@ if len(failures):
123123
if buildlog != 'None':
124124
print(buildlog)
125125
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))
127127
sendMail(arch, stamp, failure, buildlog)
128128

129129

0 commit comments

Comments
 (0)