# HG changeset patch # User Christopher Rogers # Date 1297662800 0 # Node ID 91fd51513c01f4e3f9ba9d50a4db48e8175620a2 # Parent 8e0574acbdfa55434d49c26564e9a9324df7e824 Fixed update-repository to use PACKAGES_REPOSITORY so we can have :main in sources.list file for the packages we got there. This is better then them be all saying incoming sources when there not. diff -r 8e0574acbdfa -r 91fd51513c01 update-repository --- a/update-repository Mon Feb 14 04:53:58 2011 +0000 +++ b/update-repository Mon Feb 14 05:53:20 2011 +0000 @@ -8,13 +8,15 @@ WOK=$1/wok SOURCES_REPOSITORY=$1/src LOG_DIR=$1/log +PACKAGES_REPOSITORY=$1/packages -if [ -d "$WOK" ] && [ -d "$SOURCES_REPOSITORY" ] && [ -d "$LOG_DIR" ]; then +if [ -d "$WOK" ] && [ -d "$SOURCES_REPOSITORY" ] && [ -d "$LOG_DIR" ] && [ -d "$PACKAGES_REPOSITORY" ]; then rm -f $SOURCES_REPOSITORY/sources.list else echo "$1 doesn't looks like a LOCAL_REPOSITORY: it doesn't contains one or several of theses directories: * $WOK * $SOURCES_REPOSITORY + * $PACKAGES_REPOSITORY * $LOG_DIR" exit fi @@ -46,10 +48,18 @@ fi fi fi - if [ -f $SOURCES_REPOSITORY/${SOURCE:-$PACKAGE}-$VERSION.tar.lzma ]; then - echo -e "$PACKAGE:incoming\t${SOURCE:-$PACKAGE}-$VERSION.tar.lzma" >> $SOURCES_REPOSITORY/sources.list - elif [ -f "SOURCES_REPOSITORY/$TARBALL" ]; then - echo -e "$PACKAGE:incoming\t$TARBALL" >> $SOURCES_REPOSITORY/sources.list + if [ -f $PACKAGES_REPOSITORY/$PACKAGE-$VERSION.tazpkg ]; then + if [ -f $SOURCES_REPOSITORY/${SOURCE:-$PACKAGE}-$VERSION.tar.lzma ]; then + echo -e "$PACKAGE:main\t${SOURCE:-$PACKAGE}-$VERSION.tar.lzma" >> $SOURCES_REPOSITORY/sources.list + elif [ -f "SOURCES_REPOSITORY/$TARBALL" ]; then + echo -e "$PACKAGE:main\t$TARBALL" >> $SOURCES_REPOSITORY/sources.list + fi + else + if [ -f $SOURCES_REPOSITORY/${SOURCE:-$PACKAGE}-$VERSION.tar.lzma ]; then + echo -e "$PACKAGE:incoming\t${SOURCE:-$PACKAGE}-$VERSION.tar.lzma" >> $SOURCES_REPOSITORY/sources.list + elif [ -f "SOURCES_REPOSITORY/$TARBALL" ]; then + echo -e "$PACKAGE:incoming\t$TARBALL" >> $SOURCES_REPOSITORY/sources.list + fi fi done echo "Done."