]> git.saurik.com Git - apt.git/commitdiff
Merge branch 'portability/freebsd'
authorJulian Andres Klode <jak@debian.org>
Fri, 26 Aug 2016 22:31:03 +0000 (00:31 +0200)
committerJulian Andres Klode <jak@debian.org>
Fri, 26 Aug 2016 22:31:03 +0000 (00:31 +0200)
1  2 
apt-pkg/acquire-item.cc
apt-pkg/acquire-worker.cc
apt-pkg/acquire.cc
apt-pkg/deb/dpkgpm.cc
cmdline/apt-key.in
test/integration/framework

Simple merge
Simple merge
Simple merge
Simple merge
index 199903d61165af2fce677695d39108abe48ef49f,21df37ffdf4aa0f01ca3dc9424a4c4e5569bb17a..0c10e59554972fc62603306daa7c4370e822096f
@@@ -321,10 -306,31 +321,10 @@@ merge_all_trusted_keyrings_into_pubring
      # does the same as:
      # foreach_keyring_do 'import_keys_from_keyring' "${GPGHOMEDIR}/pubring.gpg"
      # but without using gpg, just cat and find
-     local PUBRING="$(readlink -f "${GPGHOMEDIR}/pubring.gpg")"
+     local PUBRING="$(readlink -f "${GPGHOMEDIR}")/pubring.gpg"
 -    # if a --keyring was given, just use this one
 -    if [ -n "$FORCED_KEYRING" ]; then
 -      if [ -s "$FORCED_KEYRING" ]; then
 -          cp --dereference "$FORCED_KEYRING" "$PUBRING"
 -      fi
 -    else
 -      # otherwise all known keyrings are merged
 -      local TRUSTEDPARTS="/etc/apt/trusted.gpg.d"
 -      eval $(apt-config shell TRUSTEDPARTS Dir::Etc::TrustedParts/d)
 -      if [ -d "$TRUSTEDPARTS" ]; then
 -          rm -f "$PUBRING"
 -          if [ -s "$TRUSTEDFILE" ]; then
 -              cat "$TRUSTEDFILE" > "$PUBRING"
 -          fi
 -          TRUSTEDPARTS="$(readlink -f "$TRUSTEDPARTS")"
 -          (cd /; find "$TRUSTEDPARTS" -mindepth 1 -maxdepth 1 -name '*.gpg' -exec cat {} + >> "$PUBRING";)
 -      elif [ -s "$TRUSTEDFILE" ]; then
 -          cp --dereference "$TRUSTEDFILE" "$PUBRING"
 -      fi
 -    fi
 -
 -    if [ ! -s "$PUBRING" ]; then
 -      touch "$PUBRING"
 -    fi
 +    rm -f "$PUBRING"
 +    touch "$PUBRING"
 +    foreach_keyring_do 'catfile' "$PUBRING"
  }
  
  import_keys_from_keyring() {
index 0daf776f58ba24ae197ee7def285dd8beb99c1d0,c513ed12cceed851bfca78f9644c35d77271c315..62720fedd8f8d70fa05fe4a495f3026bd75ef7a1
@@@ -872,10 -911,9 +911,10 @@@ Maintainer: Joe Sixpack <joe@example.or
                                        test "$arch" = 'none' || echo "Architecture: $arch"
                                        echo "Version: $VERSION
  Filename: pool/main/${NAME}/${NAME}_${VERSION}_${arch}.deb"
-                                       test -z "$DEPENDENCIES" || echo "$DEPENDENCIES"
+                                       test -z "$DEPENDENCIES" || printf "%b\n" "$DEPENDENCIES"
                                        echo "Description: $(printf '%s' "$DESCRIPTION" | head -n 1)"
                                        echo "Description-md5: $(printf '%s' "$DESCRIPTION" | md5sum | cut -d' ' -f 1)"
 +                                      echo "SHA256: 0000000000000000000000000000000000000000000000000000000000000000"
                                        echo
                                } >> "${PPATH}/Packages"
                        done