FreeBSD Bugzilla – Attachment 346 Details for
Bug 1557
pkg_add's auto dependency get .. doesn't work
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.14 KB, created by
David Leonard
on 1996-08-31 08:10:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
David Leonard
Created:
1996-08-31 08:10:01 UTC
Size:
1.14 KB
patch
obsolete
>Index: file.c >=================================================================== >RCS file: /home/leonard/cvsroot/freebsd/src/usr.sbin/pkg_install/lib/file.c,v >retrieving revision 1.1.1.1 >diff -c -r1.1.1.1 file.c >*** file.c 1996/08/16 00:20:37 1.1.1.1 >--- file.c 1996/08/31 06:50:07 >*************** >*** 244,251 **** > snprintf(pword, HOSTNAME_MAX + 40, "%s@%s", pw->pw_name, me); > } > if (Verbose) >! printf("Trying to fetch %s.\n", fname); > ftp = ftpGetURL(fname, uname, pword); > if (ftp) { > pen[0] = '\0'; > if ((rp = make_playpen(pen, 0)) != NULL) { >--- 244,261 ---- > snprintf(pword, HOSTNAME_MAX + 40, "%s@%s", pw->pw_name, me); > } > if (Verbose) >! printf("Trying to fetch %s\n", fname); > ftp = ftpGetURL(fname, uname, pword); >+ >+ /* try adding a .tgz extension if there isn't one already */ >+ if (!ftp && 0!=strcmp( fname+(strlen(fname)-4), ".tgz") ) >+ { >+ strcat( fname, ".tgz" ); >+ if (Verbose) >+ printf("That failed, so let's try %s\n", fname); >+ ftp = ftpGetURL( fname, uname, pword ); >+ } >+ > if (ftp) { > pen[0] = '\0'; > if ((rp = make_playpen(pen, 0)) != NULL) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1557
:
345
| 346