diff options
Diffstat (limited to 'src/ideviceinstaller.c')
| -rw-r--r-- | src/ideviceinstaller.c | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/src/ideviceinstaller.c b/src/ideviceinstaller.c index 32f488a..653b460 100644 --- a/src/ideviceinstaller.c +++ b/src/ideviceinstaller.c | |||
| @@ -723,7 +723,7 @@ run_again: | |||
| 723 | afc_make_directory(afc, pkgname); | 723 | afc_make_directory(afc, pkgname); |
| 724 | } | 724 | } |
| 725 | 725 | ||
| 726 | printf("Uploading %s package contents...\n", basename(ipcc)); | 726 | printf("Uploading %s package contents... ", basename(ipcc)); |
| 727 | 727 | ||
| 728 | /* extract the contents of the .ipcc file to PublicStaging/<name>.ipcc directory */ | 728 | /* extract the contents of the .ipcc file to PublicStaging/<name>.ipcc directory */ |
| 729 | zip_uint64_t numzf = zip_get_num_entries(zf, 0); | 729 | zip_uint64_t numzf = zip_get_num_entries(zf, 0); |
| @@ -801,7 +801,7 @@ run_again: | |||
| 801 | } | 801 | } |
| 802 | } | 802 | } |
| 803 | free(ipcc); | 803 | free(ipcc); |
| 804 | printf("done.\n"); | 804 | printf("DONE.\n"); |
| 805 | 805 | ||
| 806 | instproxy_client_options_add(client_opts, "PackageType", "CarrierBundle", NULL); | 806 | instproxy_client_options_add(client_opts, "PackageType", "CarrierBundle", NULL); |
| 807 | } else if (S_ISDIR(fst.st_mode)) { | 807 | } else if (S_ISDIR(fst.st_mode)) { |
| @@ -810,8 +810,9 @@ run_again: | |||
| 810 | 810 | ||
| 811 | asprintf(&pkgname, "%s/%s", PKG_PATH, basename(appid)); | 811 | asprintf(&pkgname, "%s/%s", PKG_PATH, basename(appid)); |
| 812 | 812 | ||
| 813 | printf("Uploading %s package contents...\n", basename(appid)); | 813 | printf("Uploading %s package contents... ", basename(appid)); |
| 814 | afc_upload_dir(afc, appid, pkgname); | 814 | afc_upload_dir(afc, appid, pkgname); |
| 815 | printf("DONE.\n"); | ||
| 815 | } else { | 816 | } else { |
| 816 | zf = zip_open(appid, 0, &errp); | 817 | zf = zip_open(appid, 0, &errp); |
| 817 | if (!zf) { | 818 | if (!zf) { |
| @@ -886,7 +887,6 @@ run_again: | |||
| 886 | bname = plist_dict_get_item(info, "CFBundleIdentifier"); | 887 | bname = plist_dict_get_item(info, "CFBundleIdentifier"); |
| 887 | if (bname) { | 888 | if (bname) { |
| 888 | plist_get_string_val(bname, &bundleidentifier); | 889 | plist_get_string_val(bname, &bundleidentifier); |
| 889 | printf("Installing bundle %s.\n", bundleidentifier); | ||
| 890 | } | 890 | } |
| 891 | plist_free(info); | 891 | plist_free(info); |
| 892 | info = NULL; | 892 | info = NULL; |
| @@ -925,14 +925,14 @@ run_again: | |||
| 925 | goto leave_cleanup; | 925 | goto leave_cleanup; |
| 926 | } | 926 | } |
| 927 | 927 | ||
| 928 | printf("Copying '%s' --> '%s'\n", appid, pkgname); | 928 | printf("Copying '%s' to device... ", appid); |
| 929 | 929 | ||
| 930 | if (afc_upload_file(afc, appid, pkgname) < 0) { | 930 | if (afc_upload_file(afc, appid, pkgname) < 0) { |
| 931 | free(pkgname); | 931 | free(pkgname); |
| 932 | goto leave_cleanup; | 932 | goto leave_cleanup; |
| 933 | } | 933 | } |
| 934 | 934 | ||
| 935 | printf("done.\n"); | 935 | printf("DONE.\n"); |
| 936 | 936 | ||
| 937 | if (bundleidentifier) { | 937 | if (bundleidentifier) { |
| 938 | instproxy_client_options_add(client_opts, "CFBundleIdentifier", bundleidentifier, NULL); | 938 | instproxy_client_options_add(client_opts, "CFBundleIdentifier", bundleidentifier, NULL); |
| @@ -951,14 +951,14 @@ run_again: | |||
| 951 | 951 | ||
| 952 | /* perform installation or upgrade */ | 952 | /* perform installation or upgrade */ |
| 953 | if (install_mode) { | 953 | if (install_mode) { |
| 954 | printf("Installing '%s'\n", pkgname); | 954 | printf("Installing '%s'\n", bundleidentifier); |
| 955 | #ifdef HAVE_LIBIMOBILEDEVICE_1_1 | 955 | #ifdef HAVE_LIBIMOBILEDEVICE_1_1 |
| 956 | instproxy_install(ipc, pkgname, client_opts, status_cb, NULL); | 956 | instproxy_install(ipc, pkgname, client_opts, status_cb, NULL); |
| 957 | #else | 957 | #else |
| 958 | instproxy_install(ipc, pkgname, client_opts, status_cb); | 958 | instproxy_install(ipc, pkgname, client_opts, status_cb); |
| 959 | #endif | 959 | #endif |
| 960 | } else { | 960 | } else { |
| 961 | printf("Upgrading '%s'\n", pkgname); | 961 | printf("Upgrading '%s'\n", bundleidentifier); |
| 962 | #ifdef HAVE_LIBIMOBILEDEVICE_1_1 | 962 | #ifdef HAVE_LIBIMOBILEDEVICE_1_1 |
| 963 | instproxy_upgrade(ipc, pkgname, client_opts, status_cb, NULL); | 963 | instproxy_upgrade(ipc, pkgname, client_opts, status_cb, NULL); |
| 964 | #else | 964 | #else |
| @@ -970,6 +970,7 @@ run_again: | |||
| 970 | wait_for_op_complete = 1; | 970 | wait_for_op_complete = 1; |
| 971 | notification_expected = 1; | 971 | notification_expected = 1; |
| 972 | } else if (uninstall_mode) { | 972 | } else if (uninstall_mode) { |
| 973 | printf("Uninstalling '%s'\n", appid); | ||
| 973 | #ifdef HAVE_LIBIMOBILEDEVICE_1_1 | 974 | #ifdef HAVE_LIBIMOBILEDEVICE_1_1 |
| 974 | instproxy_uninstall(ipc, appid, NULL, status_cb, NULL); | 975 | instproxy_uninstall(ipc, appid, NULL, status_cb, NULL); |
| 975 | #else | 976 | #else |
| @@ -1233,7 +1234,7 @@ run_again: | |||
| 1233 | } | 1234 | } |
| 1234 | 1235 | ||
| 1235 | /* copy file over */ | 1236 | /* copy file over */ |
| 1236 | printf("Copying '%s' --> '%s'\n", remotefile, localfile); | 1237 | printf("Copying '%s' --> '%s'... ", remotefile, localfile); |
| 1237 | free(remotefile); | 1238 | free(remotefile); |
| 1238 | free(localfile); | 1239 | free(localfile); |
| 1239 | 1240 | ||
| @@ -1260,7 +1261,8 @@ run_again: | |||
| 1260 | afc_file_close(afc, af); | 1261 | afc_file_close(afc, af); |
| 1261 | fclose(f); | 1262 | fclose(f); |
| 1262 | 1263 | ||
| 1263 | printf("done.\n"); | 1264 | printf("DONE.\n"); |
| 1265 | |||
| 1264 | if (total != fsize) { | 1266 | if (total != fsize) { |
| 1265 | fprintf(stderr, "WARNING: remote and local file sizes don't match (%d != %d)\n", fsize, total); | 1267 | fprintf(stderr, "WARNING: remote and local file sizes don't match (%d != %d)\n", fsize, total); |
| 1266 | if (remove_after_copy) { | 1268 | if (remove_after_copy) { |
