Browse Source

fixed cretae_package_db to list errors correctly

removed the missing binary check since it is now done in create_package_db


git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@1257 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc
rocklinux
Rene Rebe 21 years ago
parent
commit
1d1c7a5f51
5 changed files with 26 additions and 32 deletions
  1. +2
    -0
      Documentation/Developers/CHANGELOG-RENE
  2. +1
    -12
      scripts/Build-Target
  3. +21
    -18
      scripts/functions
  4. +1
    -1
      target/generic/build.sh
  5. +1
    -1
      target/reference/build.sh

+ 2
- 0
Documentation/Developers/CHANGELOG-RENE

@ -13,6 +13,8 @@
file
- Tobias C. Rittweiler and Rene Rebe: added editor search to the gui_* STONE
modules
- fixed cretae_package_db to list errors correctly
- removed the missing binary check since it is now done in create_package_db
*) 2003-08-29 (2.0.0-rc1 - 2.0.0-rc2)

+ 1
- 12
scripts/Build-Target

@ -194,24 +194,13 @@ fi
fi
local pkglst=`mktemp` errors=0; rm -f src/invalid-files.lst
echo_header "Searching for missing or liggering old files ..."
echo_header "Searching for old liggering files ..."
grep "^X" config/$config/packages |
if [ $ROCKCFG_PKGFILE_VER = 1 ] ; then
cut -d' ' -f5-6 | sed "s/ /-/"
else
cut -d' ' -f5
fi > $pkglst
for x in `cat $pkglst` ; do
if [ $ROCKCFG_CREATE_TARBZ2 = 1 -a \
! -s build/$ROCKCFG_ID/pkgs/$x.tar.bz2 ] ||
[ $ROCKCFG_CREATE_GEM = 1 -a \
! -s build/$ROCKCFG_ID/pkgs/$x.gem ]
then
x="build/$ROCKCFG_ID/pkgs/$x"
echo_error "Binary package $x is missing!"
errors=1
fi
done
for file in $( ls build/$ROCKCFG_ID/pkgs/ ) ; do
x="$file"
[ $ROCKCFG_CREATE_GEM = 0 ] || x=${x%.gem}

+ 21
- 18
scripts/functions

@ -367,47 +367,50 @@ register_wm() {
# Register an application
#
register_application() {
[ -e /usr/share/rock-registry/app ] || mkdir -p /usr/share/rock-registry/app
[ -e /usr/share/rock-registry/app ] \
|| mkdir -p /usr/share/rock-registry/app
echo -e "name=\"$2\"\nexec=\"$3\"\n" > /usr/share/rock-registry/app/$1
}
# Create Package Database for gasgui install tool
#
create_package_db() {
for pkg in $( ls -dr $1/descs/?* ) ; do
for file in $( ls -dr $1/descs/?* ) ; do
pkg="${file##*/}"
# only include the package if a binary file is available
if [ "$ROCKCFG_PKGFILE_VER" = 1 ] ; then
v=-$(grep '^Package Name and Version' \
/var/adm/packages/$pkg | cut -f6 -d' ')
$1/packages/$pkg | cut -f6 -d' ')
else
v=""
fi
if [ "$ROCKCFG_CREATE_GEM" = 1 ] ; then
file=$(pkg)$(v).gem
bfile=${pkg}${v}.gem
else
file=$(pkg)$(v).tar.bz2
bfile=${pkg}${v}.tar.bz2
fi
if [ -e $file ] ; then
pkg="${pkg##*/}"
if [ -e $2/$bfile ] ; then
[ "$pkg" = TRANS.TBL ] && continue
echo -e "$pkg"
echo -e "\027"
( echo -e "$pkg"
echo -e "\027"
cat $1/descs/$pkg
echo -e "\027"
cat $1/descs/$pkg
echo -e "\027"
cat $1/dependencies/$pkg
echo -e "\027"
cat $1/dependencies/$pkg
echo -e "\027"
cat $1/cksums/$pkg
echo -e "\027"
cat $1/cksums/$pkg
echo -e "\027" ) > $3.tmp
else
echo_error "Binary file $file not present."
echo error "Skipped in package database."
echo_error "Binary file for $bfile not present." \
"Skipped in package database."
fi
done | gzip
done
gzip -c $3.tmp > $3 ; rm -f $3.tmp
}
# Add files to the 'badfiles' list

+ 1
- 1
target/generic/build.sh

@ -10,7 +10,7 @@ echo_header "Finishing build."
echo_status "Creating package database ..."
admdir="build/${ROCKCFG_ID}/root/var/adm"
create_package_db $admdir build/${ROCKCFG_ID}/pkgs \
> build/${ROCKCFG_ID}/packages.db
build/${ROCKCFG_ID}/packages.db
echo_status "Creating isofs.txt file .."
cat << EOT > build/${ROCKCFG_ID}/isofs.txt

+ 1
- 1
target/reference/build.sh

@ -40,7 +40,7 @@ cp $build_root/var/adm/logs/*.err $build_result/errors/
echo_status "Creating package database ..."
admdir="build/${ROCKCFG_ID}/root/var/adm"
create_package_db $admdir build/${ROCKCFG_ID}/pkgs \
> build/${ROCKCFG_ID}/packages.db
build/${ROCKCFG_ID}/packages.db
echo_status "Creating isofs.txt file .."
cat << EOT > build/${ROCKCFG_ID}/isofs.txt

Loading…
Cancel
Save