Alexandre Julliard : packaging: Use a separate apt-ftparchive cache for each distro.

Alexandre Julliard julliard at winehq.org
Fri Oct 8 14:10:32 CDT 2021


Module: tools
Branch: master
Commit: 1cbf1279ae2d20303356776393ea17db8bdeefd2
URL:    https://source.winehq.org/git/tools.git/?a=commit;h=1cbf1279ae2d20303356776393ea17db8bdeefd2

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Fri Oct  8 21:03:41 2021 +0200

packaging: Use a separate apt-ftparchive cache for each distro.

Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 packaging/obs/obs-sync | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/packaging/obs/obs-sync b/packaging/obs/obs-sync
index 094c4c5..d3bb585 100755
--- a/packaging/obs/obs-sync
+++ b/packaging/obs/obs-sync
@@ -11,8 +11,6 @@ winehq_dir=/home/ftp/pub/wine-builds
 deb_archs="i386 amd64"
 rpm_archs="i686 x86_64 src"
 
-apt_ftparchive="apt-ftparchive -c $basedir/apt.cfg -d $basedir/.cache/apt-cache.db -s $basedir/apt-override"
-
 # compress a file while keeping the original
 compress_file ()
 {
@@ -137,6 +135,7 @@ EOF
 index_deb ()
 {
     dest=dest/$1/dists/$2
+    apt_ftparchive="apt-ftparchive -c $basedir/apt.cfg -d $basedir/.cache/apt-cache-$2.db -s $basedir/apt-override"
 
     for arch in $deb_archs
     do
@@ -163,7 +162,6 @@ publish_files ()
 
     diff -ur --no-dereference $winehq_dir dest >diffs || true
     rsync -av --delete-after --delay-updates --exclude-from=rsync-filter --link-dest=$(pwd)/dest dest/ $winehq_dir
-    cp .cache/apt-cache.db .cache/apt-cache.db.backup
 
     # purge the download cache for symlinked directories
     for i in debian/dists/stable debian/dists/testing




More information about the wine-cvs mailing list