Browse Source

Merge branch 'vendor-getinfo' into 'master'

Fix vendor/getinfo on Ubuntu derivatives

See merge request apt-team/apt!55
tags/devuan/2.0.1+devuan1
Julian Andres Klode 1 year ago
parent
commit
c028f80a36
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      vendor/getinfo

+ 2
- 2
vendor/getinfo View File

@@ -6,7 +6,7 @@ BASEDIR="$(readlink -f "$(dirname $0)")"
getcurrent() {
# search for an exact match to use the correct sources.list example
cd $BASEDIR
DISTROS="$(find . -mindepth 1 -maxdepth 1 -type d | cut -d'/' -f 2)"
DISTROS="$(find . -mindepth 1 -maxdepth 1 -type d | cut -d'/' -f 2 | LC_ALL=C sort)"
for DISTRO in $DISTROS; do
if dpkg-vendor --is $DISTRO; then
echo $DISTRO
@@ -28,7 +28,7 @@ getcurrent() {

# Do the ubuntu/debian dance we talked about
if dpkg-vendor --derives-from ubuntu; then
echo $DISTRO
echo ubuntu
return 0
fi



Loading…
Cancel
Save