# HG changeset patch
# User Pascal Bellard
# Date 1279209188 -7200
# Node ID 93b7952261f97caefe2695a3ea30f46d81ea0ab2
# Parent 1003bb898736eaf77a32146c3c33f3731e9467f3
tazbb: add stable support for log.php
diff -r 1003bb898736 -r 93b7952261f9 tazbb/stuff/tazbb
--- a/tazbb/stuff/tazbb Thu Jul 15 14:33:06 2010 +0200
+++ b/tazbb/stuff/tazbb Thu Jul 15 17:53:08 2010 +0200
@@ -16,6 +16,10 @@
else
echo -e "\nNo config file found: tazbb.conf...\n" && exit 0
fi
+LOG_SUFFIX=""
+case "$HG_WOK" in
+*stable) LOG_SUFFIX="&stable=1";;
+esac
# Tazbb is only for root.
if test $(id -u) != 0 ; then
@@ -325,7 +329,7 @@
# Rebuild unbuilt packages list with link to log file. This list
# is also generated by cook_inslall to have real time stats.
if [ ! -d $BUILD_WOK/$PACKAGE/taz ]; then
- echo "$PACKAGE" \
+ echo "$PACKAGE" \
>> $DB_DIR/unbuilt
fi
done
@@ -364,7 +368,7 @@
BUILD_DEPENDS=""
SOURCE=""
WANTED=""
- echo "(cooking $pkg)" > $DB_DIR/running
+ echo "(cooking $pkg)" > $DB_DIR/running
tazwok clean $pkg
script -c "echo 'install' | tazwok cook $pkg" $LOG_DIR/$pkg.log
# Install new package (important for new shared libs). Note
@@ -440,7 +444,7 @@
do
if ! cook_package $pkg; then
# Link to build log.
- echo "$pkg" >> \
+ echo "$pkg" >> \
$DB_DIR/unbuilt
fi
missing_depends="$(check_depends_pkg $pkg)"
@@ -454,7 +458,7 @@
# Unbuild package
rm -rf $BUILD_WOK/$pkg/taz
# Link to build log.
- echo "$pkg" >> \
+ echo "$pkg" >> \
$DB_DIR/unbuilt
fi
# Remove package from the cooklist and empty lines for HTML .
@@ -699,7 +703,7 @@
for pkg in `cat $DB_DIR/blocked`
do
if [ -f $LOG_DIR/$pkg.log ]; then
- echo "$pkg" >> \
+ echo "$pkg" >> \
$DB_DIR/blocked.urls
else
echo "$pkg" >> $DB_DIR/blocked.urls
@@ -728,7 +732,7 @@
if [ ! -f fs.cpio.gz -a ! -f fs.cpio.lzma ]; then
echo "Missing filesystem `basename $pkg`"
if [ -f $LOG_DIR/$PACKAGE.log ];then
- echo "Missing filesystem `basename $pkg` Log" \
+ echo "Missing filesystem `basename $pkg` Log" \
>> $DB_DIR/corrupted
else
echo "Missing filesystem `basename $pkg`" \
@@ -742,7 +746,7 @@
if [ -z "$files" ]; then
echo "Empty filesystem `basename $pkg`"
if [ -f $LOG_DIR/$PACKAGE.log ]; then
- echo "Empty filesystem `basename $pkg` Log" \
+ echo "Empty filesystem `basename $pkg` Log" \
>> $DB_DIR/corrupted
else
echo "Empty filesystem `basename $pkg`" \
diff -r 1003bb898736 -r 93b7952261f9 tazbb/stuff/web/index.php
--- a/tazbb/stuff/web/index.php Thu Jul 15 14:33:06 2010 +0200
+++ b/tazbb/stuff/web/index.php Thu Jul 15 17:53:08 2010 +0200
@@ -92,7 +92,10 @@
diff -r 1003bb898736 -r 93b7952261f9 tazbb/stuff/web/log.php
--- a/tazbb/stuff/web/log.php Thu Jul 15 14:33:06 2010 +0200
+++ b/tazbb/stuff/web/log.php Thu Jul 15 17:53:08 2010 +0200
@@ -1,4 +1,10 @@
- #!/bb/packages
+ #!/bb/packages