Rewrite imports to local bencode and metainfo
This commit is contained in:
parent
ce00bd0791
commit
526d9d738e
@ -38,8 +38,8 @@ import (
|
||||
"syscall"
|
||||
"time"
|
||||
|
||||
"github.com/anacrolix/libtorgo/bencode"
|
||||
"github.com/anacrolix/libtorgo/metainfo"
|
||||
"github.com/anacrolix/torrent/bencode"
|
||||
"github.com/anacrolix/torrent/metainfo"
|
||||
"github.com/anacrolix/sync"
|
||||
"github.com/anacrolix/utp"
|
||||
"github.com/bradfitz/iter"
|
||||
|
@ -10,7 +10,7 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/anacrolix/libtorgo/bencode"
|
||||
"github.com/anacrolix/torrent/bencode"
|
||||
"github.com/anacrolix/utp"
|
||||
"github.com/bradfitz/iter"
|
||||
"gopkg.in/check.v1"
|
||||
|
@ -7,7 +7,7 @@ import (
|
||||
"os"
|
||||
"sync"
|
||||
|
||||
"github.com/anacrolix/libtorgo/bencode"
|
||||
"github.com/anacrolix/torrent/bencode"
|
||||
|
||||
"github.com/anacrolix/torrent"
|
||||
)
|
||||
|
@ -7,7 +7,7 @@ import (
|
||||
"path/filepath"
|
||||
"runtime"
|
||||
|
||||
torrent "github.com/anacrolix/libtorgo/metainfo"
|
||||
torrent "github.com/anacrolix/torrent/metainfo"
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -5,7 +5,7 @@ import (
|
||||
"fmt"
|
||||
"log"
|
||||
|
||||
"github.com/anacrolix/libtorgo/metainfo"
|
||||
"github.com/anacrolix/torrent/metainfo"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
@ -5,7 +5,7 @@ import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"github.com/anacrolix/libtorgo/metainfo"
|
||||
"github.com/anacrolix/torrent/metainfo"
|
||||
|
||||
"github.com/anacrolix/torrent"
|
||||
)
|
||||
|
@ -5,7 +5,7 @@ import (
|
||||
"fmt"
|
||||
"log"
|
||||
|
||||
"github.com/anacrolix/libtorgo/metainfo"
|
||||
"github.com/anacrolix/torrent/metainfo"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
@ -9,7 +9,7 @@ import (
|
||||
"os"
|
||||
"path/filepath"
|
||||
|
||||
"github.com/anacrolix/libtorgo/metainfo"
|
||||
"github.com/anacrolix/torrent/metainfo"
|
||||
"launchpad.net/gommap"
|
||||
|
||||
"github.com/anacrolix/torrent/mmap_span"
|
||||
|
@ -12,7 +12,7 @@ import (
|
||||
"time"
|
||||
|
||||
_ "github.com/anacrolix/envpprof"
|
||||
"github.com/anacrolix/libtorgo/metainfo"
|
||||
"github.com/anacrolix/torrent/metainfo"
|
||||
"github.com/dustin/go-humanize"
|
||||
"github.com/jessevdk/go-flags"
|
||||
|
||||
|
@ -6,7 +6,7 @@ import (
|
||||
"math"
|
||||
"strings"
|
||||
|
||||
"github.com/anacrolix/libtorgo/metainfo"
|
||||
"github.com/anacrolix/torrent/metainfo"
|
||||
|
||||
"github.com/anacrolix/torrent"
|
||||
"github.com/anacrolix/torrent/tracker"
|
||||
|
@ -12,7 +12,7 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/anacrolix/libtorgo/bencode"
|
||||
"github.com/anacrolix/torrent/bencode"
|
||||
|
||||
"github.com/anacrolix/torrent/internal/pieceordering"
|
||||
pp "github.com/anacrolix/torrent/peer_protocol"
|
||||
|
@ -5,7 +5,7 @@ import (
|
||||
"io"
|
||||
"log"
|
||||
|
||||
"github.com/anacrolix/libtorgo/metainfo"
|
||||
"github.com/anacrolix/torrent/metainfo"
|
||||
)
|
||||
|
||||
type data struct {
|
||||
|
@ -13,7 +13,7 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/anacrolix/libtorgo/metainfo"
|
||||
"github.com/anacrolix/torrent/metainfo"
|
||||
|
||||
dataPkg "github.com/anacrolix/torrent/data"
|
||||
)
|
||||
|
@ -3,7 +3,7 @@ package data
|
||||
import (
|
||||
"io"
|
||||
|
||||
"github.com/anacrolix/libtorgo/metainfo"
|
||||
"github.com/anacrolix/torrent/metainfo"
|
||||
)
|
||||
|
||||
type Store interface {
|
||||
|
@ -5,7 +5,7 @@ import (
|
||||
"os"
|
||||
"path/filepath"
|
||||
|
||||
"github.com/anacrolix/libtorgo/metainfo"
|
||||
"github.com/anacrolix/torrent/metainfo"
|
||||
)
|
||||
|
||||
type data struct {
|
||||
|
@ -5,7 +5,7 @@ import (
|
||||
"os"
|
||||
"path/filepath"
|
||||
|
||||
"github.com/anacrolix/libtorgo/metainfo"
|
||||
"github.com/anacrolix/torrent/metainfo"
|
||||
"launchpad.net/gommap"
|
||||
|
||||
"github.com/anacrolix/torrent/mmap_span"
|
||||
|
@ -19,7 +19,7 @@ import (
|
||||
"os"
|
||||
"time"
|
||||
|
||||
"github.com/anacrolix/libtorgo/bencode"
|
||||
"github.com/anacrolix/torrent/bencode"
|
||||
"github.com/anacrolix/sync"
|
||||
|
||||
"github.com/anacrolix/torrent/iplist"
|
||||
|
2
file.go
2
file.go
@ -1,6 +1,6 @@
|
||||
package torrent
|
||||
|
||||
import "github.com/anacrolix/libtorgo/metainfo"
|
||||
import "github.com/anacrolix/torrent/metainfo"
|
||||
|
||||
// Provides access to regions of torrent data that correspond to its files.
|
||||
type File struct {
|
||||
|
@ -10,7 +10,7 @@ import (
|
||||
|
||||
"bazil.org/fuse"
|
||||
fusefs "bazil.org/fuse/fs"
|
||||
"github.com/anacrolix/libtorgo/metainfo"
|
||||
"github.com/anacrolix/torrent/metainfo"
|
||||
"golang.org/x/net/context"
|
||||
|
||||
"github.com/anacrolix/torrent"
|
||||
|
@ -17,7 +17,7 @@ import (
|
||||
|
||||
"bazil.org/fuse"
|
||||
fusefs "bazil.org/fuse/fs"
|
||||
"github.com/anacrolix/libtorgo/metainfo"
|
||||
"github.com/anacrolix/torrent/metainfo"
|
||||
"golang.org/x/net/context"
|
||||
|
||||
"github.com/anacrolix/torrent"
|
||||
|
@ -12,7 +12,7 @@ import (
|
||||
"os"
|
||||
"path/filepath"
|
||||
|
||||
"github.com/anacrolix/libtorgo/metainfo"
|
||||
"github.com/anacrolix/torrent/metainfo"
|
||||
)
|
||||
|
||||
const GreetingFileContents = "hello, world\n"
|
||||
|
@ -3,7 +3,7 @@ package metainfo
|
||||
import (
|
||||
"crypto/sha1"
|
||||
"errors"
|
||||
"github.com/anacrolix/libtorgo/bencode"
|
||||
"github.com/anacrolix/torrent/bencode"
|
||||
"hash"
|
||||
"io"
|
||||
"os"
|
||||
|
@ -5,7 +5,7 @@ import (
|
||||
"io"
|
||||
"os"
|
||||
|
||||
"github.com/anacrolix/libtorgo/bencode"
|
||||
"github.com/anacrolix/torrent/bencode"
|
||||
)
|
||||
|
||||
// Information specific to a single file inside the MetaInfo structure.
|
||||
|
@ -5,7 +5,7 @@ import (
|
||||
"path"
|
||||
"testing"
|
||||
|
||||
"github.com/anacrolix/libtorgo/bencode"
|
||||
"github.com/anacrolix/torrent/bencode"
|
||||
)
|
||||
|
||||
func test_file(t *testing.T, filename string) {
|
||||
|
@ -10,8 +10,8 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/anacrolix/libtorgo/bencode"
|
||||
"github.com/anacrolix/libtorgo/metainfo"
|
||||
"github.com/anacrolix/torrent/bencode"
|
||||
"github.com/anacrolix/torrent/metainfo"
|
||||
"github.com/bradfitz/iter"
|
||||
|
||||
"github.com/anacrolix/torrent/data"
|
||||
|
@ -10,7 +10,7 @@ import (
|
||||
"net/url"
|
||||
"strconv"
|
||||
|
||||
"github.com/anacrolix/libtorgo/bencode"
|
||||
"github.com/anacrolix/torrent/bencode"
|
||||
|
||||
"github.com/anacrolix/torrent/util"
|
||||
)
|
||||
|
@ -9,7 +9,7 @@ import (
|
||||
"path/filepath"
|
||||
"strings"
|
||||
|
||||
"github.com/anacrolix/libtorgo/metainfo"
|
||||
"github.com/anacrolix/torrent/metainfo"
|
||||
"github.com/go-fsnotify/fsnotify"
|
||||
|
||||
"github.com/anacrolix/torrent"
|
||||
|
@ -7,7 +7,7 @@ import (
|
||||
"fmt"
|
||||
"io"
|
||||
|
||||
"github.com/anacrolix/libtorgo/bencode"
|
||||
"github.com/anacrolix/torrent/bencode"
|
||||
)
|
||||
|
||||
type CompactPeers []CompactPeer
|
||||
|
Loading…
x
Reference in New Issue
Block a user