source: soft/build_system/build_system/upload/robot/trunk/check_changelog.sh @ 1

Last change on this file since 1 was 1, checked in by fasma, 13 years ago

Initial Import from Mandriva's soft revision 224062 and package revision 45733

File size: 337 bytes
Line 
1#!/bin/sh
2
3set -e
4
5dir=$1
6file=$2
7
8TZ=GMT
9export TZ
10
11case $file in
12    *.alpha.rpm|*.ppc.rpm|*.sparc.rpm|*.sparc64.rpm)
13        exit 0;;
14esac
15
16name=`rpm -qp --queryformat %{NAME} $file`
17old=`ls $dir/$name-[0-9]*` || exit 0
18
19changelog=`rpm -qp --changelog $old | head -1`
20
21rpm -qp --changelog $file | fgrep -q "$changelog"
22
23# check_changelog.sh
Note: See TracBrowser for help on using the repository browser.