@cryptotaxi247 / kubo / commits / f28ba8559

remove error for not having an upgrade

License: MIT Signed-off-by: Jeromy <jeromyj@gmail.com>

Jeromy committed Jan 25, 2017 at 23:17 UTC f28ba8559ba579f6508861929591fd6e938e2d56
2 files changed +3 -7
repo/fsrepo/migrations/migrations.go
-3
@@ -35,9 +35,6 @@ func migrationsBinName() string {
35 }
36
37 func RunMigration(newv int) error {
38 - if newv == 5 {
39 - return fmt.Errorf("No automatic migrations yet for repo version 5. You will have to build them from source.\nSee https://github.com/ipfs/fs-repo-migrations")
40 - }
38 migrateBin := migrationsBinName()
39
40 fmt.Println(" => Looking for suitable fs-repo-migrations binary.")
test/sharness/t0066-migration.sh
+3 -4
@@ -13,7 +13,7 @@ test_init_ipfs
13 test_expect_success "setup mock migrations" '
14 mkdir bin &&
15 echo "#!/bin/bash" > bin/fs-repo-migrations &&
16 - echo "echo 4" >> bin/fs-repo-migrations &&
16 + echo "echo 5" >> bin/fs-repo-migrations &&
17 chmod +x bin/fs-repo-migrations &&
18 export PATH="$(pwd)/bin":$PATH
19 '
@@ -35,9 +35,8 @@ test_expect_success "ipfs daemon --migrate=true runs migration" '
35 '
36
37 test_expect_success "output looks good" '
38 - #grep "Running: " true_out > /dev/null &&
39 - #grep "Success: fs-repo has been migrated to version 4." true_out > /dev/null
40 - grep "No automatic migrations yet" true_out > /dev/null
38 + grep "Running: " true_out > /dev/null &&
39 + grep "Success: fs-repo has been migrated to version 5." true_out > /dev/null
40 '
41
42 test_expect_success "'ipfs daemon' prompts to auto migrate" '