@@ -191,6 +191,7 @@ published-html() {
191
191
- [2025-08-07-fix](2025-08-07-fix.wwz/_tmp/aports-report/2025-08-07-fix/diff_merged.html)
192
192
- [2025-08-14-fix](2025-08-14-fix.wwz/_tmp/aports-report/2025-08-14-fix/diff_merged.html)
193
193
- [2025-08-26-ifs](2025-08-26-ifs.wwz/_tmp/aports-report/2025-08-26-ifs/diff_merged.html)
194
+ - new causes: [2025-09-06-edit](2025-09-06-edit.wwz/_tmp/aports-report/2025-09-06-edit/diff_merged.html)
194
195
195
196
EOF
196
197
@@ -260,7 +261,7 @@ make-package-table() {
260
261
261
262
sqlite3 -cmd ' .mode columns' $db < regtest/aports/tasks.sql
262
263
263
- pushd $base_dir /$config
264
+ pushd $base_dir /$config > /dev/null
264
265
265
266
db-to-tsv $db packages
266
267
@@ -278,7 +279,8 @@ make-package-table() {
278
279
.mode column
279
280
select * from metrics;
280
281
EOF
281
- popd
282
+
283
+ popd > /dev/null
282
284
283
285
# cat $base_dir/$config/packages.schema.tsv
284
286
}
@@ -331,7 +333,8 @@ make-diff-db() {
331
333
local cause_awk=$PWD /regtest/aports/cause.awk
332
334
local cause_sql=$PWD /regtest/aports/cause.sql
333
335
334
- pushd $base_dir
336
+ pushd $base_dir > /dev/null
337
+
335
338
rm -f $db
336
339
sqlite3 $db < $diff_sql
337
340
374
377
# The DB is diff_baseline.db, with table diff_baseline
375
378
db-to-tsv $db diff_baseline
376
379
377
- popd
380
+ popd > /dev/null
378
381
}
379
382
380
383
db-to-tsv () {
@@ -491,12 +494,12 @@ merge-diffs() {
491
494
local name2=metrics
492
495
493
496
# copied from above
494
- pushd $epoch_dir
497
+ pushd $epoch_dir > /dev/null
495
498
496
499
db-to-tsv $db diff_merged ' order by pkg'
497
500
db-to-tsv $db metrics
498
501
499
- popd
502
+ popd > /dev/null
500
503
501
504
make-apk-merged $epoch_dir $db
502
505
@@ -607,6 +610,52 @@ deploy-published() {
607
610
echo " Visit https://$dest_dir /published.html"
608
611
}
609
612
613
+ #
614
+ # For editing
615
+ #
616
+
617
+ readonly EDIT_DIR=_tmp/aports-edit
618
+
619
+ sync-wwz () {
620
+ local wwz=${1:- 2025-08-26-ifs.wwz}
621
+
622
+ mkdir -p $EDIT_DIR
623
+
624
+ rsync --archive --verbose \
625
+ $WEB_HOST :$WEB_HOST /aports-build/$wwz \
626
+ $EDIT_DIR /$wwz
627
+
628
+ ls -l $EDIT_DIR
629
+ # echo "Wrote $wwz"
630
+ }
631
+
632
+ extract () {
633
+ local wwz=${1:- 2025-08-26-ifs.wwz}
634
+ local new_epoch=${2:- 2025-09-06-edit}
635
+
636
+ # Extract the whole thing into a temp dir
637
+ local tmp_dir=$EDIT_DIR /$new_epoch
638
+ rm -r -f $tmp_dir
639
+ mkdir -p $tmp_dir
640
+
641
+ pushd $tmp_dir
642
+ unzip ../$wwz
643
+ popd
644
+
645
+ # Now re-create the old structure under _tmp/aports-report/2025-09-06-edit
646
+
647
+ local dest_dir=$REPORT_DIR /$new_epoch
648
+ mkdir -p $dest_dir
649
+
650
+ local old_epoch
651
+ old_epoch=$( basename $wwz .wwz)
652
+ mv -v --no-target-directory $tmp_dir /_tmp/aports-report/$old_epoch $dest_dir
653
+ }
654
+
655
+ #
656
+ # Dev tools
657
+ #
658
+
610
659
out-of-vm () {
611
660
local dest=~ /vm-shared/$EPOCH
612
661
mkdir -p $dest
0 commit comments