Merge lp:~tribaal/ubuntu/utopic/ubumirror/upstream-0.5-release into lp:ubuntu/utopic/ubumirror

Proposed by Chris Glass
Status: Merged
Merge reported by: Chris Glass
Merged at revision: not available
Proposed branch: lp:~tribaal/ubuntu/utopic/ubumirror/upstream-0.5-release
Merge into: lp:ubuntu/utopic/ubumirror
Diff against target: 323 lines (+231/-3)
9 files modified
assets/README.txt (+2/-0)
assets/ubumirror-logo.svg (+121/-0)
debian/changelog (+6/-0)
debian/ubumirror.install (+1/-1)
ubucdimage (+2/-1)
ubucloudimage (+89/-0)
ubumirror.conf (+7/-0)
ubumirror.crontab (+2/-0)
uburelease (+1/-1)
To merge this branch: bzr merge lp:~tribaal/ubuntu/utopic/ubumirror/upstream-0.5-release
Reviewer Review Type Date Requested Status
Daniel Holbach (community) Approve
Review via email: mp+231211@code.launchpad.net

Description of the change

This branch updates the package to upstream's latest release (0.5), as per attached bug.

To post a comment you must log in.
Revision history for this message
Daniel Holbach (dholbach) wrote :

Thanks. Uploaded.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added directory 'assets'
2=== added file 'assets/README.txt'
3--- assets/README.txt 1970-01-01 00:00:00 +0000
4+++ assets/README.txt 2014-08-18 15:14:37 +0000
5@@ -0,0 +1,2 @@
6+This directory is not distributed in the deb file, but holds the "other" things
7+like the logo.
8
9=== added file 'assets/ubumirror-logo.svg'
10--- assets/ubumirror-logo.svg 1970-01-01 00:00:00 +0000
11+++ assets/ubumirror-logo.svg 2014-08-18 15:14:37 +0000
12@@ -0,0 +1,121 @@
13+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
14+<!-- Generator: Adobe Illustrator 15.0.2, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
15+
16+<svg
17+ xmlns:dc="http://purl.org/dc/elements/1.1/"
18+ xmlns:cc="http://creativecommons.org/ns#"
19+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
20+ xmlns:svg="http://www.w3.org/2000/svg"
21+ xmlns="http://www.w3.org/2000/svg"
22+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
23+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
24+ version="1.1"
25+ id="Layer_1"
26+ x="0px"
27+ y="0px"
28+ width="113.38597"
29+ height="113.38599"
30+ viewBox="0 0 113.38597 113.386"
31+ enable-background="new 0 0 283.465 283.465"
32+ xml:space="preserve"
33+ inkscape:version="0.48.4 r9939"
34+ sodipodi:docname="mirror_orange_hex_2.svg"><metadata
35+ id="metadata4797"><rdf:RDF><cc:Work
36+ rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
37+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs
38+ id="defs4795" /><sodipodi:namedview
39+ pagecolor="#ffffff"
40+ bordercolor="#666666"
41+ borderopacity="1"
42+ objecttolerance="10"
43+ gridtolerance="10"
44+ guidetolerance="10"
45+ inkscape:pageopacity="0"
46+ inkscape:pageshadow="2"
47+ inkscape:window-width="1366"
48+ inkscape:window-height="744"
49+ id="namedview4793"
50+ showgrid="false"
51+ inkscape:zoom="2.1060801"
52+ inkscape:cx="39.948234"
53+ inkscape:cy="-8.1206781"
54+ inkscape:window-x="0"
55+ inkscape:window-y="24"
56+ inkscape:window-maximized="1"
57+ inkscape:current-layer="Layer_1"
58+ fit-margin-top="0"
59+ fit-margin-left="0"
60+ fit-margin-right="0"
61+ fit-margin-bottom="0" /><path
62+ d="M 56.693001,0 C 25.432001,0 0,25.432001 0,56.691996 c 0,31.260007 25.432001,56.693994 56.693001,56.693994 31.260978,0 56.692969,-25.433987 56.692969,-56.693994 C 113.38597,25.432001 87.953979,0 56.693001,0 z"
63+ id="path4791"
64+ inkscape:connector-curvature="0"
65+ style="fill:#dd4814"
66+ sodipodi:nodetypes="sssss"
67+ inkscape:export-filename="/home/tribaal/Desktop/g5791_14.png"
68+ inkscape:export-xdpi="11.11"
69+ inkscape:export-ydpi="11.11" /><g
70+ id="g5791"
71+ transform="matrix(0.88992454,0.56218499,-0.5698707,0.87792233,39.008016,-47.742568)"
72+ inkscape:export-xdpi="11.11"
73+ inkscape:export-ydpi="11.11"><path
74+ transform="translate(-80.243861,-78.344598)"
75+ d="m 167.60995,144.58139 c 0,16.12736 -8.92845,29.20117 -19.94226,29.20117 -11.0138,0 -19.94226,-13.07381 -19.94226,-29.20117 0,-16.12736 8.92846,-29.20117 19.94226,-29.20117 11.01381,0 19.94226,13.07381 19.94226,29.20117 z"
76+ sodipodi:ry="29.201168"
77+ sodipodi:rx="19.942261"
78+ sodipodi:cy="144.58139"
79+ sodipodi:cx="147.66769"
80+ id="path5777"
81+ style="fill:#ffffff;fill-opacity:1"
82+ sodipodi:type="arc" /><path
83+ transform="translate(-81.905711,-81.193492)"
84+ d="m 162.38698,147.19289 c 0,12.84944 -5.84601,23.26597 -13.05744,23.26597 -7.21142,0 -13.05743,-10.41653 -13.05743,-23.26597 0,-12.84945 5.84601,-23.26598 13.05743,-23.26598 7.21143,0 13.05744,10.41653 13.05744,23.26598 z"
85+ sodipodi:ry="23.265972"
86+ sodipodi:rx="13.057433"
87+ sodipodi:cy="147.19289"
88+ sodipodi:cx="149.32954"
89+ id="path5779"
90+ style="fill:#dd4814;fill-opacity:1"
91+ sodipodi:type="arc" /><rect
92+ rx="3.3237102"
93+ ry="1.899263"
94+ y="93.538704"
95+ x="64.100121"
96+ height="19.467445"
97+ width="6.6474204"
98+ id="rect5781"
99+ style="fill:#ffffff;fill-opacity:1" /><path
100+ transform="translate(1.899263,-0.47481575)"
101+ inkscape:transform-center-y="-0.05303025"
102+ inkscape:transform-center-x="0.069577817"
103+ d="m 69.797914,53.179362 c -0.497436,-0.497436 3.420314,1.768975 3.310265,1.074155 -0.110048,-0.69482 -3.135691,2.671316 -2.816317,2.04451 0.319374,-0.626806 -0.62546,3.799555 0.0013,3.480181 0.626806,-0.319374 -3.509554,-2.156737 -2.814734,-2.046689 0.69482,0.110049 -3.80687,0.57928 -3.309433,1.076716 0.497436,0.497436 0.966667,-4.004253 1.076715,-3.309433 0.110049,0.69482 -1.727314,-3.441541 -2.046688,-2.814735 -0.319374,0.626806 4.106987,-0.318027 3.480181,0.0013 -0.626806,0.319373 2.73933,-2.706269 2.044511,-2.816317 -0.69482,-0.110049 1.57159,3.807701 1.074154,3.310265 z"
104+ inkscape:randomized="0"
105+ inkscape:rounded="-0.20213914"
106+ inkscape:flatsided="false"
107+ sodipodi:arg2="-0.15707958"
108+ sodipodi:arg1="-0.78539811"
109+ sodipodi:r2="5.2744656"
110+ sodipodi:r1="2.6859634"
111+ sodipodi:cy="55.078625"
112+ sodipodi:cx="67.898651"
113+ sodipodi:sides="5"
114+ id="path5785"
115+ style="fill:#ffffff;fill-opacity:1"
116+ sodipodi:type="star" /><path
117+ transform="translate(-7.5970519,-1.899263)"
118+ inkscape:transform-center-y="-0.27839706"
119+ inkscape:transform-center-x="-0.041438382"
120+ d="m 72.171991,67.898653 c 0.379971,-0.253314 -2.425836,-1.125111 -1.969539,-1.106705 0.456297,0.01841 -2.410612,0.661379 -2.052279,0.944474 0.358333,0.283096 0.320419,-2.654786 0.443918,-2.215134 0.123498,0.439652 -1.373928,-2.088251 -1.532437,-1.659974 -0.158509,0.428276 2.623866,-0.515637 2.243895,-0.262323 -0.37997,0.253314 1.561478,-1.951989 1.105181,-1.970395 -0.456297,-0.01841 1.301219,2.336105 0.942886,2.053009 -0.358333,-0.283095 2.338974,0.881856 2.215476,0.442204 -0.123498,-0.439652 -1.819669,1.959429 -1.66116,1.531153 0.158509,-0.428277 -0.115912,2.497005 0.264059,2.243691 z"
121+ inkscape:randomized="0"
122+ inkscape:rounded="-0.20213914"
123+ inkscape:flatsided="false"
124+ sodipodi:arg2="1.6111123"
125+ sodipodi:arg1="0.98279372"
126+ sodipodi:r2="1.7436062"
127+ sodipodi:r1="3.423945"
128+ sodipodi:cy="65.049759"
129+ sodipodi:cx="70.272728"
130+ sodipodi:sides="5"
131+ id="path5789"
132+ style="fill:#ffffff;fill-opacity:1"
133+ sodipodi:type="star" /></g></svg>
134\ No newline at end of file
135
136=== modified file 'debian/changelog'
137--- debian/changelog 2014-07-14 13:11:54 +0000
138+++ debian/changelog 2014-08-18 15:14:37 +0000
139@@ -1,3 +1,9 @@
140+ubumirror (0.5) utopic; urgency=medium
141+
142+ * New upstream release (LP: #1358349)
143+
144+ -- Christopher Glass (Canonical) <christopher.glass@canonical.com> Mon, 18 Aug 2014 17:07:18 +0200
145+
146 ubumirror (0.4) utopic; urgency=low
147
148 * New upstream release (LP: #1341523)
149
150=== modified file 'debian/ubumirror.install'
151--- debian/ubumirror.install 2010-02-17 18:06:32 +0000
152+++ debian/ubumirror.install 2014-08-18 15:14:37 +0000
153@@ -1,2 +1,2 @@
154-ubuarchive ubucdimage ubuports uburelease usr/bin
155+ubuarchive ubucdimage ubuports uburelease ubucloudimage usr/bin
156 ubumirror.conf etc
157
158=== modified file 'ubucdimage'
159--- ubucdimage 2014-07-14 13:11:54 +0000
160+++ ubucdimage 2014-08-18 15:14:37 +0000
161@@ -76,7 +76,7 @@
162 $UBUCDI_MIRROR $UBUCDI_DIR
163
164 if [ $? -ne 0 ]; then
165- ( echo "Sync for $FLAVOUR failed. Please check logs."; \
166+ ( echo "CDimage sync failed. Please check logs."; \
167 egrep '^write failed|@ERROR' $LOGFILE ) | mail -s "Ubuntu cdimage sync failed" $EMAIL
168 echo "$(date -R): sync for cdimage failed."
169 exit 2
170@@ -84,6 +84,7 @@
171
172 echo "$(date -R): sync for cdimage completed."
173
174+echo "$(date -R): Releasing lock file..."
175 rm -f $LOCK > /dev/null 2>&1
176
177 echo "$(date -R): Ubuntu daily CD image mirror operations completed."
178
179=== added file 'ubucloudimage'
180--- ubucloudimage 1970-01-01 00:00:00 +0000
181+++ ubucloudimage 2014-08-18 15:14:37 +0000
182@@ -0,0 +1,89 @@
183+#!/bin/sh
184+#
185+# ubucloudimage - provides an easy way to sync cloud images from an ubuntu
186+# cloud-image mirror.
187+#
188+# Copyright (C) 2014 - 2015 Christopher Glass
189+#
190+# This program is free software: you can redistribute it and/or modify
191+# it under the terms of the GNU General Public License as published by
192+# the Free Software Foundation, either version 3 of the License, or
193+# (at your option) any later version.
194+#
195+# This program is distributed in the hope that it will be useful,
196+# but WITHOUT ANY WARRANTY; without even the implied warranty of
197+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
198+# GNU General Public License for more details.
199+#
200+# You should have received a copy of the GNU General Public License
201+# along with this program. If not, see <http://www.gnu.org/licenses/>.
202+#
203+
204+set -e
205+
206+if [ ! -f /etc/ubumirror.conf ]; then
207+ echo "Configuration file /etc/ubumirror.conf not found."
208+ exit 2
209+fi
210+
211+. /etc/ubumirror.conf
212+
213+LOGFILE="$LOGDIR/ubucloudimage.log"
214+
215+# Log all activity to file.
216+exec >> $LOGFILE 2>&1
217+
218+if [ -z "$UBUARC_DIR" ]; then
219+ echo -n "No Ubuntu cloud-image target directory (UBUCLOUD_DIR) set in "
220+ echo "/etc/ubumirror.conf."
221+ exit 2
222+fi
223+
224+LOCK="${UBUCLOUD_DIR}/Archive-Update-in-Progress-${HOSTNAME}"
225+
226+trap 'rm -f $LOCK > /dev/null 2>&1; savelog -c 28 -n $LOGFILE > /dev/null' EXIT
227+
228+# Get in the right directory and set the umask
229+cd $HOME
230+umask 022
231+
232+echo "$(date -R): Initiating Ubuntu cloud-image mirror operations..."
233+
234+# Check to see if another sync is in progress
235+if ! ( set -o noclobber; echo "$$" > "${LOCK}") 2> /dev/null; then
236+ if ! $(kill -0 $(cat ${LOCK}) 2>/dev/null); then
237+ # Process does either not exist or is not owned by us.
238+ echo "$$" > "${LOCK}"
239+ else
240+ echo "$(date -R): Unable to proceed with operations; lock file still exists for PID $(cat ${LOCK})."
241+ exit 1
242+ fi
243+fi
244+
245+echo "$(date -R): Lock established for process $(cat $LOCK)."
246+
247+set +e
248+echo "$(date -R): Initiating cloud-image sync..."
249+
250+mkdir -p $UBUCLOUD_DIR
251+
252+rsync -av --partial --delete --delete-after \
253+ --timeout=$IO_TIMEOUT \
254+ --bwlimit=$SPEED \
255+ --exclude ".trace/${HOSTNAME}" \
256+ $UBUCOUD_EXCLUDE \
257+ $UBUCLOUD_MIRROR $UBUCLOUD_DIR
258+
259+if [ $? -ne 0 ]; then
260+ ( echo "CLoud-image sync failed. Please check logs."; \
261+ egrep '^write failed|@ERROR' $LOGFILE ) | mail -s "Cloud-image sync failed" $EMAIL
262+ echo "$(date -R): Cloud-image sync failed."
263+ exit 1
264+fi
265+
266+echo "$(date -R): Cloud-image sync completed."
267+
268+echo "$(date -R): Releasing lock file..."
269+rm -f $LOCK > /dev/null 2>&1
270+
271+echo "$(date -R): Ubuntu cloud-image mirror operations completed."
272
273=== modified file 'ubumirror.conf'
274--- ubumirror.conf 2014-07-14 13:11:54 +0000
275+++ ubumirror.conf 2014-08-18 15:14:37 +0000
276@@ -31,6 +31,10 @@
277 # UBUPOR_DIR is the destination for the base of the ports directory
278 # The script (ubuports) won't run if this variable isn't set
279 #UBUPOR_DIR="/srv/mirror/ubuntu-ports"
280+#
281+# UBUCLOUD_DIR is the destination for the base of the cloud-image directory
282+# The script (ubucloudimage) won't run if this variable isn't set
283+#UBUCLOUD_DIR="/srv/mirror/ubuntu-cloud-images"
284
285 # LOGDIR is the destination directory of all the logs
286 LOGDIR="/var/log/ubumirror/"
287@@ -41,6 +45,7 @@
288 UBUCDI_MIRROR=rsync://rsync.cdimage.ubuntu.com/cdimage
289 UBUREL_MIRROR=rsync://rsync.releases.ubuntu.com/releases
290 UBUPOR_MIRROR=rsync://rsync.ports.ubuntu.com/ubuntu-ports
291+UBUCLOUD_MIRROR=rsync://cloud-images.ubuntu.com/cloud-images
292
293 # UBU{ARC,CDI,REL}_EXCLUDE is what things you want to exclude
294 UBUARC_EXCLUDE=""
295@@ -65,3 +70,5 @@
296 # --exclude *_powerpc.deb --exclude *_powerpc.udeb \
297 # --exclude *_sparc.deb --exclude *_sparc.udeb \
298 # --exclude Contents-powerpc.gz --exclude Contents-sparc.gz \
299+
300+UBUCLOUD_EXCLUDE=""
301
302=== modified file 'ubumirror.crontab'
303--- ubumirror.crontab 2014-07-14 13:11:54 +0000
304+++ ubumirror.crontab 2014-08-18 15:14:37 +0000
305@@ -12,3 +12,5 @@
306 33 */4 * * * /usr/bin/uburelease >/dev/null
307 # Update cdimage mirror every twenty-four hours around 5 am.
308 53 4 * * * /usr/bin/ubucdimage >/dev/null
309+# Update cloud-images mirror every twenty-four hours around 5 am.
310+23 4 * * * /usr/bin/ubucloudimage >/dev/null
311
312=== modified file 'uburelease'
313--- uburelease 2014-07-14 13:11:54 +0000
314+++ uburelease 2014-08-18 15:14:37 +0000
315@@ -66,7 +66,7 @@
316 echo "$(date -R): Initiating Ubuntu release CD image sync..."
317
318 rsync -av --partial --delete-after \
319- --bwlimit=$SPEED
320+ --bwlimit=$SPEED \
321 --timeout=$IO_TIMEOUT \
322 --exclude ".trace/${HOSTNAME}" \
323 --exclude Archive-Update-in-Progress-* \

Subscribers

People subscribed via source and target branches

to all changes: