Some packages were being downloaded to wrong location. For example "gcc-core" is
supposed to be found at
release/gcc/gcc-core
However it was being downloaded at
release/gcc-core
Packages will now be downloaded as directed by "setup.ini"
1. create proxy file if not exist
2. create array from proxy file if not exist
3. if array is empty download proxy file
4. shift continue unless country is US
5. shift continue if proxy is slow
6. shift continue if proxy is blocked by Google
7. print successful proxy
8. save remaining proxies to file
I think package names are not allowed to contain spaces anyway, but if they are
it would cause apt-cyg to fail spectacularly. Some unquoted
$pkg
are still lingering but that is an easy fix.
The array method works fine, but sed method uses less characters and is easier
to read. Also it does support indenting, it would just need to be modified to
sed '1d;$d;s/ //'
or similar.
listfiles was only working on packages that were already installed. You should
be able to list a packages files even if it is not installed, especially if it
has already been downloaded.
The function will now download the package if necessary, without installing, in
order to view the package files.
Other small changes
- conditional echo instead of piping to "head" in certain loops
- download function was exiting upon failure, when really it should just skip to
next package
- simplified a grep statement
The MSYS2 programs will not play nice with Cygwin paths. This change will create
a wrapper script in "/usr/local/bin" for each ".exe" that runs the exe with a
path it will recognize.
This is a file similar to apt-cyg. It will install packages from the MSYS2
project. It will only be practical for packages from the "MINGW" repo, as
packages from the "MSYS2" repo would require the MSYS2 dll.
I have a need for this because Cygwin Tcl/Tk requires X11. MSYS2 Tcl/Tk does not
require X11, so it can run much faster.
User input was not being checked in any way. "mirror" must not have a trailing
slash, while "mirrordir" must have a trailing slash before it is encoded.
This is to match up with "setup-x86_64.exe" installer.
1. print a list of all files and dependencies of those files used by apt-cyg
2. if any are found in the files list of the package to be removed, then fail
Unrelated, added an echo each time a postinstall script is run, the name of the
script