-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use original Cygwin setup preferences and repo folder #24
Comments
There are no reasons, except the original
This option overwrite Hmm, this solution is not smart :-( By the way, my pretty script
Perhaps, it's a part of my future plans. Thanks. |
Hey @kou1okada, I was about to open the same issue until I noticed this one exists. Yes, the original
The original implementation did this by default, because it was supposed to be a command-line alternative to Is there any way to run |
Aah, this explain some mysterious behavior of setup not noticing when I have removed or added packages using this apt-cyg, unlike using or the "original" apt-cyg! Because I have relocated the package directory for the original setup. I wish I had seen this issue before! @kou1okada |
Hi @kou1okada The more I use apt-cyg, the more this is becoming as issue. function findworkspace()
{
# default working directory, mirror and architecture
mirror=http://ftp.jaist.ac.jp/pub/cygwin
arch="$(current_cygarch)"
cache=/setup
# work wherever setup worked last, if possible
if [ -e /etc/setup/last-cache ]; then
cache="$(cygpath -au "$(head -1 /etc/setup/last-cache)")"
fi
cache="${cache%/}"
if [ -e /etc/setup/last-mirror ]; then
mirror="$(head -1 /etc/setup/last-mirror)"
fi
mirror="${mirror%/}"
mirrordir="$(mirror_to_mirrordir "$mirror/")"
verbose 1 "Cache directory is $cache"
verbose 1 "Mirror is $mirror"
mkdir -p "$cache/$mirrordir/$arch"
cd "$cache/$mirrordir/$arch"
init_gnupg
fetch_trustedkeys
} Instead, it should read something like this: function find-workspace {
# default working directory and mirror
# work wherever setup worked last, if possible
cache=$(awk '
BEGIN {
RS = "\n\\<"
FS = "\n\t"
}
$1 == "last-cache" {
print $2
}
' /etc/setup/setup.rc)
mirror=$(awk '
/last-mirror/ {
getline
print $1
}
' /etc/setup/setup.rc)
mirrordir=$(sed '
s / %2f g
s : %3a g
' <<< "$mirror")
mkdir -p "$cache/$mirrordir/$arch"
cd "$cache/$mirrordir/$arch"
if [ -e setup.ini ]
then
return 0
else
get-setup
return 1
fi
} Anything else doesn't make sense, and is incompatible with native setup, causing package incongruities. |
@kou1okada |
* remove `--use-setuprc` and `--use-own-conf` options. * TODO: update `--mirror` and `--cache` options.
Has this been fixed? |
Yes, this has been fixed. |
Brilliant, thanks for your great work on this fork, I've been using the original transcode version for years without realising there was a more fully-featured and up-to-date version out there. |
I started using this fork of apt-cyg that gives me everything I needed and more. However, I noticed that it downloads a new installer and uses a different hardcoded
/setup
folder instead of the one followed by the cygwin original installer. Is there a specific reason why it was decided to "hardcode" the setup directory instead of following the cygwin convention? If not, take it as a suggestion for a future improvement.Thanks for your work on this tool. :)
The text was updated successfully, but these errors were encountered: