Work for flavored packages as well
This commit is contained in:
parent
a2a36538dc
commit
91f5ae3fcb
@ -1,5 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# $OpenBSD: out-of-date,v 1.2 1999/09/26 09:36:33 espie Exp $
|
# $OpenBSD: out-of-date,v 1.3 1999/09/26 14:00:53 espie Exp $
|
||||||
# Copyright (c) 1999
|
# Copyright (c) 1999
|
||||||
# Marc Espie. All rights reserved.
|
# Marc Espie. All rights reserved.
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# Redistribution and use in source and binary forms, with or without
|
||||||
@ -38,6 +38,11 @@ do
|
|||||||
grep "^$fullname" $FILE >/dev/null || {
|
grep "^$fullname" $FILE >/dev/null || {
|
||||||
basename=`echo $fullname |sed -e 's/^\(.*\)-.*/\1/'`
|
basename=`echo $fullname |sed -e 's/^\(.*\)-.*/\1/'`
|
||||||
newname=`grep "^$basename-" $FILE |cut -f1 -d\|`
|
newname=`grep "^$basename-" $FILE |cut -f1 -d\|`
|
||||||
|
if [ X"$newname" == X ]
|
||||||
|
then
|
||||||
|
basename=`echo $basename |sed -e 's/^\(.*\)-.*/\1/'`
|
||||||
|
newname=`grep "^$basename-" $FILE |cut -f1 -d\|`
|
||||||
|
fi
|
||||||
# some packages exist in several distinct flavors
|
# some packages exist in several distinct flavors
|
||||||
if [ `echo $newname| wc -w` -ge 2 ]
|
if [ `echo $newname| wc -w` -ge 2 ]
|
||||||
then
|
then
|
||||||
|
Loading…
Reference in New Issue
Block a user