Merge lp:~ignacio-nin/percona-server/5.6-debian---epoch into lp:percona-server/5.6

Proposed by Ignacio Nin
Status: Merged
Approved by: Laurynas Biveinis
Approved revision: no longer in the source branch.
Merged at revision: 342
Proposed branch: lp:~ignacio-nin/percona-server/5.6-debian---epoch
Merge into: lp:percona-server/5.6
Diff against target: 36 lines (+5/-2)
1 file modified
build/build-dpkg.sh (+5/-2)
To merge this branch: bzr merge lp:~ignacio-nin/percona-server/5.6-debian---epoch
Reviewer Review Type Date Requested Status
Laurynas Biveinis (community) Approve
Review via email: mp+161965@code.launchpad.net

Description of the change

--epoch parameter for dpkg builder

To post a comment you must log in.
Revision history for this message
Laurynas Biveinis (laurynas-biveinis) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'build/build-dpkg.sh'
2--- build/build-dpkg.sh 2013-04-15 12:12:53 +0000
3+++ build/build-dpkg.sh 2013-05-01 22:03:32 +0000
4@@ -12,12 +12,14 @@
5 set -ue
6
7 # Examine parameters
8-go_out="$(getopt --options "kK:bH" --longoptions key:,nosign,binary \
9+go_out="$(getopt --options "k:Ke:b" \
10+ --longoptions key:,nosign,epoch:binary \
11 --name "$(basename "$0")" -- "$@")"
12 test $? -eq 0 || exit 1
13 eval set -- $go_out
14
15 BUILDPKG_KEY=''
16+EPOCH=''
17 BINARY=''
18
19 for arg
20@@ -26,6 +28,7 @@
21 -- ) shift; break;;
22 -k | --key ) shift; BUILDPKG_KEY="-pgpg -k$1"; shift;;
23 -K | --nosign ) shift; BUILDPKG_KEY="-uc -us";;
24+ -e | --epoch ) shift; EPOCH="$1:"; shift;;
25 -b | --binary ) shift; BINARY='-b';;
26 esac
27 done
28@@ -103,7 +106,7 @@
29 chmod +x debian/rules
30
31 # Update distribution name
32- dch -m -D "$DEBIAN_VERSION" --force-distribution -v "$MYSQL_VERSION-$PERCONA_SERVER_VERSION-$BB_PERCONA_REVISION.$DEBIAN_VERSION" 'Update distribution'
33+ dch -m -D "$DEBIAN_VERSION" --force-distribution -v "$EPOCH$MYSQL_VERSION-$PERCONA_SERVER_VERSION-$BB_PERCONA_REVISION.$DEBIAN_VERSION" 'Update distribution'
34
35 DEB_CFLAGS_APPEND="$CFLAGS" DEB_CXXFLAGS_APPEND="$CXXFLAGS" \
36 dpkg-buildpackage $BINARY -rfakeroot $BUILDPKG_KEY

Subscribers

People subscribed via source and target branches