Lines 1-15
Link Here
|
1 |
#!/bin/bash |
1 |
#!/bin/bash |
2 |
# we have no $REPOCOP_PKG_SRC_NAME yet, so try to guess it from the source rpm string |
2 |
|
3 |
srcname= |
3 |
srcname=`rpmquery --queryformat '%{Name}' -p $REPOCOP_PKG` |
4 |
if [ "${REPOCOP_PKG_SOURCEPKG%-$REPOCOP_PKG_RELEASE}" != "$REPOCOP_PKG_SOURCEPKG" ]; then |
4 |
|
5 |
srcname=${REPOCOP_PKG_SOURCEPKG%-$REPOCOP_PKG_RELEASE} |
|
|
6 |
if [ "${srcname%-$REPOCOP_PKG_VERSION}" != "$srcname" ]; then |
7 |
srcname=${srcname%-$REPOCOP_PKG_VERSION} |
8 |
else |
9 |
srcname=${srcname%[-0-9.]*} |
10 |
fi |
11 |
fi |
12 |
################ |
13 |
STATUS=ok |
5 |
STATUS=ok |
14 |
declare -a MESSAGE |
6 |
declare -a MESSAGE |
15 |
i=0 |
7 |
i=0 |