Skip to content
Snippets Groups Projects
Commit 745ef3d8 authored by Sjoerd Simons's avatar Sjoerd Simons
Browse files

Add patches to fix publishing

parent 2fba8019
No related branches found
No related tags found
No related merge requests found
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,
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)?$/) {
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment