Merge lp:~bigkevmcd/offspring/remove-tar-xz into lp:offspring

Proposed by Kevin McDermott
Status: Merged
Approved by: David Murphy
Approved revision: 179
Merged at revision: 176
Proposed branch: lp:~bigkevmcd/offspring/remove-tar-xz
Merge into: lp:offspring
Diff against target: 24 lines (+14/-0)
1 file modified
lib/offspring/build/scripts/archive-builds (+14/-0)
To merge this branch: bzr merge lp:~bigkevmcd/offspring/remove-tar-xz
Reviewer Review Type Date Requested Status
David Murphy (community) Approve
Review via email: mp+188063@code.launchpad.net

Description of the change

Trivial change to remove these files.

To post a comment you must log in.
178. By Kevin McDermott

And remove zsync files too...

Revision history for this message
David Murphy (schwuk) wrote :

We need to remove all zsync files, not just for ISOs.

review: Needs Fixing
Revision history for this message
Kevin McDermott (bigkevmcd) wrote :

Can you provide the file extensions?

Revision history for this message
David Murphy (schwuk) wrote :

*.zsync should suffice.

On 27 September 2013 17:03, Kevin McDermott
<email address hidden>wrote:

> Can you provide the file extensions?
> --
> https://code.launchpad.net/~bigkevmcd/offspring/remove-tar-xz/+merge/188063
> You are reviewing the proposed merge of
> lp:~bigkevmcd/offspring/remove-tar-xz into lp:offspring.
>

--
David Murphy (schwuk) <email address hidden>
Infrastructure Team Manager, Commercial Engineering
Professional Engineering Services

179. By Kevin McDermott

Remove all files with the zsync extension.

Revision history for this message
David Murphy (schwuk) wrote :

Looks good. Thanks for the quick turnaround. Let's get this live.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'lib/offspring/build/scripts/archive-builds'
2--- lib/offspring/build/scripts/archive-builds 2012-01-09 21:18:01 +0000
3+++ lib/offspring/build/scripts/archive-builds 2013-09-27 16:21:58 +0000
4@@ -150,6 +150,20 @@
5 find $IBS_RESULT_DIR/$project/$day -name *.iso -type f -print | xargs /bin/rm -f
6 fi
7 fi
8+ if [ -n "`find $IBS_RESULT_DIR/$project/$day -name *.tar.xz -type f -print`" ]; then
9+ echo " I: Deleting tar.xz files for $project builds from $day"
10+ ACTION_TAKEN=1
11+ if [ 1 -ne $SIMULATION ]; then
12+ find $IBS_RESULT_DIR/$project/$day -name *.tar.xz -type f -print | xargs /bin/rm -f
13+ fi
14+ fi
15+ if [ -n "`find $IBS_RESULT_DIR/$project/$day -name *.zsync -type f -print`" ]; then
16+ echo " I: Deleting zsync files for $project builds from $day"
17+ ACTION_TAKEN=1
18+ if [ 1 -ne $SIMULATION ]; then
19+ find $IBS_RESULT_DIR/$project/$day -name *.zsync -type f -print | xargs /bin/rm -f
20+ fi
21+ fi
22 if [ -n "`find $IBS_RESULT_DIR/$project/$day -name *-tar-*.tar.gz -type f -print`" ]; then
23 echo " I: Deleting tarballs for $project builds from $day"
24 ACTION_TAKEN=1

Subscribers

People subscribed via source and target branches