Browse Source

Andreas V. Meier:


			
			
				rocklinux
			
			
		
Andreas V. 'netrunner' Meier 20 years ago
parent
commit
c05cbf0024
2 changed files with 8 additions and 3 deletions
  1. +4
    -3
      scripts/Download
  2. +4
    -0
      scripts/functions

+ 4
- 3
scripts/Download

@ -633,7 +633,7 @@ download_file_now() {
list_dtags() {
{
descparser package/*/*/*.desc | grep '^\[D\] '
grep -h '^[X0-9]' target/*/download.txt | sed 's,^,[D] ,'
grep -h '^[X0-9]' target/*/download.txt | sed 's,^,[D] ,'
} | column_clean
}
@ -641,8 +641,8 @@ list_cksums() {
trap '' INT
list_dtags | sed \
-e "s,^$Dre[ ].*\($NODISTre\).*$,\3 download/nodist/\5/\4,;" \
-e "s,^$Dre$,\3 download/mirror/\5/\4,;" \
-e "s,^$D2re[ ].*\($NODISTre\).*$,\2 download/nodist/\4/\3,;" \
-e "s,^$D2re$,\2 download/mirror/\4/\3,;" \
| sed 's,^\(.*/\)[^/:]*:[^ ]* \([X0-9]*\) ,\2 \1,;' | cut -f1,2 -d' '
trap INT
@ -835,6 +835,7 @@ fi
case "$1" in
-list) list ;;
-list-dtags) list_dtags ;;
-list-unknown) list_unknown ;;
-list-missing) list_missing ;;
-list-cksums) list_cksums ;;

+ 4
- 0
scripts/functions

@ -729,6 +729,10 @@ Dre='\([^:]*\):\([^ ]*\)[ ]\([^ ]*\)[ ]\(\([^ ]\)[^ ]*\)[ ]\([^ ]*\)'
# \1: package-desc-path \2: '[D]'
# \3: cksum \4: archive-file
# \5: first-letter-of-archive-file \6: download-url
D2re='\([^ ]*\)[ ]\([^ ]*\)[ ]\(\([^ ]\)[^ ]*\)[ ]\([^ ]*\)'
# \1: '[D]' \2: cksum
# \3: archive-file \4: first-letter-of-archive-file
# \5: download-url
# NODIST flag regex:
NODISTre='[nN][oO][dD][iI][sS][tT]'

Loading…
Cancel
Save