Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
History for libpkg/fetch.c  ·  View all commits
200 commits
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
22 days ago abccdd3
B
switch back to libfetch
Baptiste Daroussin
1 month ago de81471
B
audit: don't leave behind tmp files
Baptiste Daroussin
1 month ago 35f78fc
S
Merge commit '2d18505bf79a2eb87e2e72bbc3e30b0cf7f6b15c'
Shawn Webb
4 months ago eacbab2
B
Revert "fetch: Fix pkg_fetch_file_to_fd cleanup"
Baptiste Daroussin
4 months ago 2d4a921
T
fetch: Fix pkg_fetch_file_to_fd cleanup
Tuukka Pasanen
4 months ago 59d443a
M
libpkg: Use designated initializers for fetchers
Mark Johnston
6 months ago 65408a1
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
11 months ago ba89bd1
B
vec: simplify vec_init() usage
Baptiste Daroussin
1 year ago 6401b82
B
fetch: remove usage of tll
Baptiste Daroussin
1 year ago 33650dc
B
vec: convert kvlist into vectors
Baptiste Daroussin
1 year ago 28aa748
S
Merge remote-tracking branch 'upstream/main'
Shawn Webb
1 year ago 7c30b5f
B
futimens: replace deprecated futimes
Baptiste Daroussin
1 year ago 963ba34
S
Merge remote-tracking branch 'upstream/master'
Shawn Webb
1 year ago 33f4711
B
cocci: fix NELEM vs nitems mix
Baptiste Daroussin
1 year ago bf078b6
S
Merge branch 'upstream-master'
Shawn Webb
2 years ago fd4c88b
B
pkg_dbg: now accept both flags and level
Baptiste Daroussin
2 years ago 69dc99d
B
debug: implement PKG_DEBUG_FLAGS
Baptiste Daroussin
2 years ago 9f817aa
S
Merge remote-tracking branch 'upstream/master'
Shawn Webb
2 years ago 76bfe81
r
libpkg/fetch.c: avoid calling strlen() for same variable
rilysh
2 years ago 16e27d4
S
Merge branch 'upstream-master'
Shawn Webb
2 years ago 5768655
B
fetch: remove now unused code
Baptiste Daroussin
2 years ago 7bdd4df
B
fetch: remove dead code
Baptiste Daroussin
2 years ago 996e0b3
B
curl: readd support for SRV mirroring type
Baptiste Daroussin
2 years ago f06399c
B
fetch: introduce a new struct fetch_item
Baptiste Daroussin
2 years ago 2027d7a
B
fetch: finish removing libfetch by handling timeout per fetcher
Baptiste Daroussin
2 years ago c6c6c75
B
fetch: remove libfetch usage
Baptiste Daroussin
2 years ago e86eab4
B
fetch: select a fetcher as early as possible
Baptiste Daroussin
2 years ago 5b3d2ff
B
fetch: convert https to libcurl as well
Baptiste Daroussin
2 years ago 6045992
B
fetch: switch from libfetch to libcurl
Baptiste Daroussin
2 years ago d85fcfd
B
fetch: isolate fetch details in specific functions
Baptiste Daroussin
3 years ago f8cdf1d
B
fetch: add a cleanup function
Baptiste Daroussin
3 years ago fb0fbeb
B
fetch: isolate the close code in a callback
Baptiste Daroussin
3 years ago cd3a5f3
B
fetch: create the fakerepo earlier to simplify code
Baptiste Daroussin
3 years ago 5d1e133
B
fetch: simplify code
Baptiste Daroussin
3 years ago 1df15ed
B
fetch: only select the fetchers once per repo
Baptiste Daroussin
3 years ago 24d4b77
S
Merge branch 'upstream-master'
Shawn Webb
3 years ago 6c2ebb5
B
protocols: remove support for ftp
Baptiste Daroussin
3 years ago 2a1d53a
B
tcp: add a new protocol tcp://
Baptiste Daroussin
4 years ago 4535ea5
B
fetch: use string list to unset, pkg_kv is not needed
Baptiste Daroussin
4 years ago 6445397
B
more conversion from utlist to tllist
Baptiste Daroussin
4 years ago 55e8743
S
Merge remote-tracking branch 'upstream/master'
Shawn Webb
5 years ago d871ad5
B
Fix fetch things which do not belong to any repository
Baptiste Daroussin
5 years ago 96406ff
B
Remove old and now useless warning
Baptiste Daroussin
5 years ago 6602e23
B
Check if we are fetching from a repo before trying to issue a warning regarding the repo
Baptiste Daroussin
5 years ago 754a323
B
For file:// stop using libfetch
Baptiste Daroussin
5 years ago 5df6239
B
Turn into static functions, the one who are never directly called for ssh
Baptiste Daroussin
5 years ago a9a5944
B
Isolate libfetch specific code into its own function
Baptiste Daroussin
5 years ago c46eba5
B
Make the code to start external fetcher generic
Baptiste Daroussin
5 years ago 853a5be
B
Move ssh client code into its own file
Baptiste Daroussin
5 years ago b7b0646
E
Remove some debug printfs
Emmanuel Vadot
5 years ago 453cf30
B
In case we do find the http mirror at full doc url path, Consider the file to fetch relatively to it
Baptiste Daroussin
6 years ago 21a67b1
B
Improve http mirror type support
Baptiste Daroussin
6 years ago 562fa0b
B
Initialise the keep-alive cache
Baptiste Daroussin
6 years ago 4982c60
B
minor optimization: only prepare the SRV request when actually needed
Baptiste Daroussin
6 years ago 789aa2f
B
implement uncompressed meta.conf
Baptiste Daroussin
6 years ago caf7e16
B
Fix -Wformat-truncation warnings
Baptiste Daroussin
7 years ago 18cf338
B
Revert d46e4231f73b53db07a325e138a4a2770807ddb8
Brad Davis
8 years ago 9e03cfc
B
Close a leak
Brad Davis
8 years ago d46e423
V
Merge branch 'master' of github.com:freebsd/pkg
Vsevolod Stakhov
9 years ago d7f6ae8
B
Move the globals under a ctx object to prepare for newer api
Baptiste Daroussin
9 years ago 7ea4379
B
Allow to set env per repo for everykind of repo
Baptiste Daroussin
9 years ago fda534c
B
Prefer double linked list when appending data
Baptiste Daroussin
9 years ago bf4c200
B
Make the fetch buffer a multiple of 4k
Baptiste Daroussin
9 years ago c04574d
V
Fix format strings issues
Vsevolod Stakhov
9 years ago 7957c5b
B
Remove useless code and duplicated code
Baptiste Daroussin
9 years ago bd5adf3
B
abort() in case of memory failure
Baptiste Daroussin
9 years ago 2a1ca66
B
Allow to set env per repo (useful for fetch specific)
Baptiste Daroussin
9 years ago 097c35b
B
Stop dropping privileges when fetching as it causes more issues than it solved
Baptiste Daroussin
9 years ago f3b0469
B
Fix warnings reported by clang
Baptiste Daroussin
9 years ago 1d317c3
B
Replace libsbuf with utstring.h to improve portability
Baptiste Daroussin
9 years ago f93c045
B
Fix issue causing always refetching the repository
Baptiste Daroussin
9 years ago b1442a9
B
Change log level for fetch read information
Baptiste Daroussin
9 years ago a6d6bfe
B
Yet another error that should be 2
Baptiste Daroussin
9 years ago 3c18003
B
Fix typos
Baptiste Daroussin
9 years ago 5f94f2b
B
exit with error 2 when not able to run setrlimit to the father process knows it is an error
Baptiste Daroussin
9 years ago a42547f
B
Fix detecting uptodate fetched files after dropping privileges
Baptiste Daroussin
9 years ago a8c5238
B
drop privileges when using libfetch
Baptiste Daroussin
9 years ago fcceab3
B
Fix grabbing mirror types over https
Baptiste Daroussin
9 years ago 86a6c5f
M
Unbreak fetch over ssh.
Michael Gmelin
9 years ago bbb533d
B
Fix mirorr type HTTP always trying to fetch over port 80
Baptiste Daroussin
9 years ago 4823b62
B
Remove freebsdism not needed due to setting _BSD_SOURCE
Baptiste Daroussin
9 years ago 39ac3d6
B
plug resource leaks in case of errors
Baptiste Daroussin
10 years ago e3780c3
B
Refactor ssh connection mechanism to ease cleaning up resources
Baptiste Daroussin
10 years ago d1058ee
T
Fix segfault when parsing invalid URLs (PR 205003)
Tobias Kortkamp
10 years ago 7ff2757
J
Set the v flag for libfetch at the highest debug levels
John W. O'Brien
10 years ago 54f6652
B
Fix pkg ssh
Baptiste Daroussin
11 years ago 55c3a32
B
Implement resume on fetch for http/ftp
Baptiste Daroussin
11 years ago fd5fba3
S
Allow processing of Transfer-Encoding: chunked responses.
Serge Ballesta
11 years ago 1abd8f9
B
Merge pull request #1113 from landonf/osx/release/0.1
Baptiste Daroussin
11 years ago 3eafef1
L
Initial adoption of OS X compatibility shims.
Landon Fuller
11 years ago 753c3af
B
Finish properly the sbuf and plug a leak
Baptiste Daroussin
11 years ago 295f01f
B
Fix pkg audit -F after -4/-6 merge
Bryan Drewery
11 years ago 0329713
M
Merge branch 'blacklion-master'
Matthew Seaman
11 years ago ae929c4
L
Add ability to select usage of IPv4/IPv6 via config, repository config or command line
Lev Serebryakov
11 years ago 6f0a018
B
A round at cleaning up headers
Baptiste Daroussin
11 years ago 32cd125
B
Fix saving/comparing mtime of files from remote for https://, file://, ftp://
Bryan Drewery
11 years ago ec9a97d
B
No need to limit calling progressbar_tick() as it is self-limiting
Bryan Drewery
11 years ago e1268af
V
Fix read size for fread.
Vsevolod Stakhov
11 years ago 73217ef
V
Avoid vfork since it can break stdio.
Vsevolod Stakhov
11 years ago 48d6f0e
V
Revert "Only read the needed size if smaller than BUFSIZ"
Vsevolod Stakhov
11 years ago 60bf6f5
B
Only read the needed size if smaller than BUFSIZ
Baptiste Daroussin
11 years ago acfe63c
B
Cleanup ssh_read
Baptiste Daroussin
11 years ago 6b0a37c
B
Fix pkg ssh client: to protocol exchange in blocking mode and read the package in non blocking mode
Baptiste Daroussin
11 years ago 4d699bc
V
Stop using of mkstemp for regular files.
Vsevolod Stakhov
11 years ago cb5ef9e
B
Remove some dead code
Baptiste Daroussin
11 years ago 4450622
V
Some tunes for portable compiling.
Vsevolod Stakhov
11 years ago b207305
M
Fix comment.
Matthew Seaman
11 years ago 882dc8f
B
Fetch now uses progress events
Baptiste Daroussin
11 years ago 1d7712b
V
Do not retry to fetch non-existent files.
Vsevolod Stakhov
11 years ago 9b4e413
M
Merge branch 'master' of github.com:freebsd/pkg
Matthew Seaman
12 years ago 8623ebf
V
Merge pull request #789 from skinder/master
Vsevolod Stakhov
12 years ago bdcfeea
E
ssh -p <port>, not -P
Elvira Khabirova
12 years ago 2e7b946
M
Merge branch 'master' into indexfile
Matthew Seaman
12 years ago 859bbf1
B
Propagate usage of ucl
Baptiste Daroussin
12 years ago 99f9cd1
B
Pass the ssh output socket into nonblocking handle timeout when writting to it
Baptiste Daroussin
12 years ago ca7e518
B
Following what happened in fetch(3) replace select(2) by poll(2) for ssh://
Baptiste Daroussin
12 years ago b914082
B
Merge branch 'master' into fix-autoremove-completion
Brad Davis
12 years ago 5b00ee1
V
Merge branch 'master' into gsoc
Vsevolod Stakhov
12 years ago 8d30157
M
Where we use a fixed size char array as a buffer or as a member of a structure, use the sizeof() operator later in the same scope when we need to know the length of the array.
Matthew Seaman
12 years ago 2f3cf0c
B
Fix usage of getline
Baptiste Daroussin
12 years ago da3686b
A
Fix Dead assignments found with scan-build.
Alexandre Perrin
12 years ago 3eede04
B
pkg_fetch_file now takes a mkstemp(3) pattern
Baptiste Daroussin
12 years ago e46bf03
B
Fix build with gcc
Baptiste Daroussin
12 years ago 7885d5f
B
Fix pkg ssh by creating a fetch(3) like api
Baptiste Daroussin
12 years ago 6b71cee
B
Use the port specified in the srv record when changing the fetch host
Baptiste Daroussin
12 years ago 0597625
B
Add a debug message to know where we are downloading from
Baptiste Daroussin
12 years ago 7fe31d1
B
Fix spelling of occurred
Bryan Drewery
12 years ago 40277e7
M
Quick'n'dirty implementation of pkg+foo:// URL scheme, for foo in (http, https, ftp).
Matthew Seaman
12 years ago 976af31
A
Fix build with GCC
Alexandre Perrin
12 years ago d5d8f11
B
Add debug line (level 1) for ssh://
Baptiste Daroussin
12 years ago 99929de
B
Allow to pass custom arguments to the ssh(1) command line
Baptiste Daroussin
12 years ago 036b8c2
B
Properly reset timeout
Baptiste Daroussin
12 years ago 492184f
B
Fix ssh support
Baptiste Daroussin
12 years ago 8c2f188
B
Prevent 'pkg update' will always think that the repo is up to date if no mtime header is sent by the http server
Baptiste Daroussin
12 years ago e54c478
B
Fix fetching audit files
Baptiste Daroussin
12 years ago fa9ea58
V
Try to set mtime directly only for http urls.
Vsevolod Stakhov
13 years ago 7b84682
B
Add per repo mirror type, and use the repo all over the place
Baptiste Daroussin
13 years ago 8b17402
B
Set user agent to pkg/PKGVERSION
Baptiste Daroussin
13 years ago 04a79c9
B
Do not try to call kevent if not on ssh
Baptiste Daroussin
13 years ago d9a542d
V
Calm down stupid analyzer of gcc.
Vsevolod Stakhov
13 years ago b03f667
V
Do not reset file flags when setting O_NONBLOCK.
Vsevolod Stakhov
13 years ago 320a723
V
Honor timeout while fetching via ssh.
Vsevolod Stakhov
13 years ago b3b9d77
V
Fix build on i386 platform.
Vsevolod Stakhov
13 years ago 3b6cac4
B
Test and report error on kqueue()/kevent()/fcntl()
Baptiste Daroussin
13 years ago fdf092e
B
Factorize fetch error check by testing size after the fetch loop
Baptiste Daroussin
13 years ago d461824
B
If ev.data is 0 that means we have a problem while fetching
Baptiste Daroussin
13 years ago 550dd74
B
Correctly mark again as blocking
Baptiste Daroussin
13 years ago 4a912e6
B
Loop again is nothing is available to read
Baptiste Daroussin
13 years ago e5facf2
B
directly use the new variable to compare with sizeof
Baptiste Daroussin
13 years ago 5953df2
B
Fix warning with gcc
Baptiste Daroussin
13 years ago c42ca2c
B
Close kq if used
Baptiste Daroussin
13 years ago b104646
B
Make ssh:// really working
Baptiste Daroussin
13 years ago 965cc81
B
Preliminaty support for ssh:// packagesite
Baptiste Daroussin
13 years ago aee69d1
B
Refactor a bit fetch interface to make it reentrant
Baptiste Daroussin
13 years ago 4c426b7
V
Ude 0644 mode for fetched packages.
Vsevolod Stakhov
13 years ago 3dfa32c
V
Fix operator misprint in pkg-update code.
Vsevolod Stakhov
13 years ago 5e7f8eb
V
Set mtime for remote repo from a remote server.
Vsevolod Stakhov
13 years ago 9ea259e
B
Merge pull request #460 from dannomac/master
Baptiste Daroussin
13 years ago 83c618f
D
Add configuration support for setting the fetch timeout
Dan McGregor
13 years ago d34be20
B
Fix SRV mirroring support not actually looking up SRV record
Bryan Drewery
13 years ago 3736e04
A
Merge remote-tracking branch 'origin/master' into periodic
Alex Kozlov
13 years ago 677d1b3
B
No need to check the scheme to chose the right method, libfetch does it already
Baptiste Daroussin
13 years ago 58f02fa
B
If mirror is stored in http use If-Modified-Since (fixes #425)
Baptiste Daroussin
13 years ago 5527865
B
Actually parse the right url for HTTP_MIRRORS
Baptiste Daroussin
13 years ago ee3903a
B
Update my copyright statements
Baptiste Daroussin
13 years ago d42ae05
B
Nuke all sys/queue.h usage and replace it by utlist
Baptiste Daroussin
13 years ago 0a179bd
B
Fix uninitialized warnings causing build failure
Bryan Drewery
13 years ago 69e0e11
B
Unify the mirroring type into one single option:
Baptiste Daroussin
13 years ago 5cba692
B
New HTTP_MIRRORS option default to off
Baptiste Daroussin
13 years ago 250bddd
M
Style: Add dash to first line of copyright header.
Matthew Seaman
13 years ago bfe0183
B
Allow to query _https._tcp srv records
Baptiste Daroussin
13 years ago c91edad
R
Merge branch 'master' of git://github.com/pkgng/pkgng
Roman Naumann
13 years ago 838dd4c
J
Layered fetch API.
Julien Laffaye
13 years ago 9694ec1
M
Fix updating of repositories
Marin Atanasov Nikolov
13 years ago cedfbc0
M
Fix #301 -- infinite retry loop when file not found * When an integer config value is unset, return the default, if set or else fail. * If decrementing the retry counter results in a negative number (not just zero) then fail.
Matthew Seaman
13 years ago 903f786
M
Merge remote-tracking branch 'upstream/master'
Matthew Seaman
13 years ago 6efb836
W
Various style(9) fixes.
Will Andrews
13 years ago 9fd0036
B
Make srv mirroring support working, default off
Baptiste Daroussin
13 years ago 2812a0e
B
des@ recommend at least 30s for this value
Baptiste Daroussin
14 years ago 5da6b77
B
This time really fix #192
Baptiste Daroussin
14 years ago 4833118
B
Reduce cpu usage while fetching
Baptiste Daroussin
14 years ago ccda7b8
B
pkg_fetch_file now can take a time_t argument
Baptiste Daroussin
14 years ago 915ebd4
B
Removed unused headers
Baptiste Daroussin
14 years ago 80ac28f
B
Adding the copyright to the library
Baptiste Daroussin
14 years ago 8dbe8b5
J
Move private headers to private/ subfolder. Dont use private headers in the frontend.
Julien Laffaye
14 years ago b6d30db
j
Replace emit macros by functions.
jlaffaye
14 years ago db27b92
J
Merge pull request #46 from dnaeon/master
Julien Laffaye
14 years ago 519f600
M
Merge remote-tracking branch 'upstream/master' and resolve conflicts
Marin Atanasov Nikolov
14 years ago f279bf9
M
Avoid possible race condition when using mktemp()
Marin Atanasov Nikolov
14 years ago 1c5352f
j
Nuke pkg_error: eveything is an event now!!
jlaffaye
14 years ago 54d9a45
j
Use the new events API to show fetching status.
jlaffaye
14 years ago 929b50a
j
Introduce new events API.
jlaffaye
14 years ago f8a04e8
B
Merge branch 'master' of git://github.com/wca/pkgng into wca
Baptiste Daroussin
14 years ago 7fd834b
W
Rename _FAILED events to _ERROR and remove duplicate PKG_EVENT_DB_OPEN_ERROR.
Will Andrews
14 years ago b091aa0
W
Refactor the I/O error events into a single event.
Will Andrews
14 years ago 3e8242d
W
Initial cut at adding in events, starting with errors.
Will Andrews
14 years ago 653e68c
B
Fix fetch return
Baptiste Daroussin
14 years ago 5031817
B
New update subcommand which fetches repo.txz found in PACKAGESITE env var
Baptiste Daroussin
15 years ago 533f51f
j
Remove file if fetch failed.
jlaffaye
15 years ago a179358