diff --git a/debian/patches/Correct-reprepro-argument-to-match-current-version.patch b/debian/patches/Correct-reprepro-argument-to-match-current-version.patch
new file mode 100644
index 0000000000000000000000000000000000000000..52654d5c2ee8d665fa7c336483c8ab39fa6840c4
--- /dev/null
+++ b/debian/patches/Correct-reprepro-argument-to-match-current-version.patch
@@ -0,0 +1,22 @@
+From: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
+Date: Thu, 23 Feb 2017 14:35:30 +0100
+Subject: Correct reprepro argument to match current version
+
+Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
+---
+ src/backend/bs_publish | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/backend/bs_publish b/src/backend/bs_publish
+index 66d117a..595c13d 100755
+--- a/src/backend/bs_publish
++++ b/src/backend/bs_publish
+@@ -663,7 +663,7 @@ sub updaterepo_reprepro {
+ 
+           my @args = ('reprepro', '-b', $repo,
+             '--ignore=wrongdistribution',
+-            '--ignore=updatedarchall',
++            '--ignore=conflictingarchall',
+             '--ignore=unusedarch',
+             '--ignore=surprisingbinary',
+             '-T', $type,
diff --git a/debian/patches/Put-binary-uploads-in-architecture-dependent-subdirectori.patch b/debian/patches/Put-binary-uploads-in-architecture-dependent-subdirectori.patch
new file mode 100644
index 0000000000000000000000000000000000000000..02870ed63bcb74c9420220891715c7c620723686
--- /dev/null
+++ b/debian/patches/Put-binary-uploads-in-architecture-dependent-subdirectori.patch
@@ -0,0 +1,43 @@
+From: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
+Date: Tue, 8 Jan 2013 15:25:14 +0100
+Subject: Put binary uploads in architecture dependent subdirectories
+
+For the binary parts of a debian upload, include the .changes file and
+put the files in an architecure specific directly. This prevent arch all
+package builds from different architectures overwriting each-other, which
+makes the changes file inconsistent
+---
+ src/backend/bs_publish | 6 ++++--
+ 1 file changed, 4 insertions(+), 2 deletions(-)
+
+diff --git a/src/backend/bs_publish b/src/backend/bs_publish
+index e4ad908..66d117a 100755
+--- a/src/backend/bs_publish
++++ b/src/backend/bs_publish
+@@ -1508,7 +1508,7 @@ sub publish {
+ 	$p = "$1/$bin";
+ 	$p = $1 eq 'src' || $1 eq 'nosrc' ? "SRPMS/$bin" : "RPMS/$bin" if $repotype{'resarchhack'};
+       } elsif ($bin =~ /^.+_[^_]+_([^_\.]+)\.u+deb$/) {
+-	$p = "$1/$bin";
++	$p = "$arch/$bin";
+       } elsif ($bin =~ /\.exe$/) {
+ 	$p = "$bin";
+       } elsif ($bin =~ /\.d?rpm$/) {
+@@ -1519,7 +1519,7 @@ sub publish {
+       } elsif ($bin =~ /\.deb$/) {
+ 	# legacy format
+ 	my $q = Build::query("$r/$rbin", 'evra' => 1);
+-	$p = "$q->{'arch'}/$q->{'name'}_$q->{'version'}";
++	$p = "$arch/$q->{'name'}_$q->{'version'}";
+ 	$p .= "-$q->{'release'}" if defined $q->{'release'};
+ 	$p .= "_$q->{'arch'}.deb";
+       } elsif ($bin =~ /\.(?:pkg\.tar\.gz|pkg\.tar\.xz)$/) {
+@@ -1540,6 +1540,8 @@ sub publish {
+ 	  $p = "$bin";
+ 	} elsif ($bin =~ /\.tar(?:\.(?:gz|bz2|xz))?(?:\.sha256)?$/) {
+ 	  $p = "$bin";
++	} elsif ($bin =~ /\.changes(:?\.sha256)?$/) {
++	  $p = "$arch/$bin";
+         } elsif ($bin =~ /\.squashfs$/) {
+ 	  $p = "$bin";	# for simpleimage builds
+ 	} elsif ($bin =~ /\.diff\.(?:gz)(?:\.sha256)?$/) {
diff --git a/debian/patches/series b/debian/patches/series
index 993222bbd9326c6a352c96e675721a547f2df961..13dd14a6994d989943c22358414075f9f9ff1fb6 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -24,3 +24,5 @@ Include_ddebs_in_reprepro_too_and_fix_inclusion_of_udebs.patch
 bs_publish_improve-logging_for_reprepro_invocations.patch
 publisher_reprepro_set_surprising_binary.patch
 Add-support-for-md5-and-sha256-cypted-passwords.patch
+Put-binary-uploads-in-architecture-dependent-subdirectori.patch
+Correct-reprepro-argument-to-match-current-version.patch