
> > tlz) DECOMPRESS=lzma ;;
> > txz) DECOMPRESS=xz ;;

I will update the FAQ script for this.

> The problem seems to be that the script is not getting the list of
> packages right. Files that are not packages get included in the
> processing, which causes errors.
> 
> In the script there is the following filter:
> 
>   # find . -type f -regex '.*\.[tgblzikx]+$' -print
> 
> I executed this in a shell and got all the usual *.txz, but I also
> got a number of unwanted files:
> 
> ./.http:##software.jaos.org#slackpacks#13.0#PACKAGES.TXT.gz
> ./.http:##software.jaos.org#slackpacks#13.0#patches#PACKAGES.TXT.gz
> ./.http:##software.jaos.org#slackpacks#13.0#CHECKSUMS.md5.gz
> ./.http:##software.jaos.org#slackpacks#13.0#ChangeLog.txt.gz
> ./.http:##software.jaos.org#slackpacks#13.0#ChangeLog.txt
> ./.ftp:##ftp.osuosl.org#pub#slackware#slackware-13.0#ChangeLog.txt
>
> Please Jason, would you mind fixing the filter for FAQ 17 so that no
> *.txt or *.gz or other unwanted files are selected. It really is most
> valuable to be able to reuse WORKINGDIR as a SOURCE to avoid multiple
> downloads of the same packages, and it used to work fine ;)

The script should be filtering with grep -E '(.*{1,})\-(.*[\.\-].*[\.\-].*).[tgblzikx]{2,}[ ]{0,}$'

So your example would be :

find . -type f -regex '.*\.[tgblzikx]+$' -print | \
  grep -E '(.*{1,})\-(.*[\.\-].*[\.\-].*).[tgblzikx]{2,}[ ]{0,}$'

which does the right thing.


take care,
jason
--
Jason Woodward
woodwardj@jaos.org
