Changeset 132ab5d1 in mainline for uspace/app/pkg/pkg.c
- Timestamp:
- 2018-01-30T03:20:45Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5a6cc679
- Parents:
- 8bfb163 (diff), 6a5d05b (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
uspace/app/pkg/pkg.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/pkg/pkg.c
r8bfb163 r132ab5d1 96 96 } 97 97 98 return retval ;98 return retval == 0 ? EOK : EPARTY; 99 99 } 100 100 … … 107 107 char *fnunpack; 108 108 int rc; 109 int ret; 109 110 110 111 if (argc != 3) { … … 115 116 pkg_name = argv[2]; 116 117 117 r c= asprintf(&src_uri, "http://ci.helenos.org/latest/" STRING(UARCH)118 ret = asprintf(&src_uri, "http://ci.helenos.org/latest/" STRING(UARCH) 118 119 "/%s-for-helenos-" STRING(UARCH) ".tar.gz", 119 120 pkg_name); 120 if (r c< 0) {121 if (ret < 0) { 121 122 printf("Out of memory.\n"); 122 123 return ENOMEM; 123 124 } 124 125 125 r c= asprintf(&fname, "/tmp/%s-for-helenos-" STRING(UARCH)126 ret = asprintf(&fname, "/tmp/%s-for-helenos-" STRING(UARCH) 126 127 ".tar.gz", pkg_name); 127 if (r c< 0) {128 if (ret < 0) { 128 129 printf("Out of memory.\n"); 129 130 return ENOMEM; 130 131 } 131 132 132 r c= asprintf(&fnunpack, "/tmp/%s-for-helenos-" STRING(UARCH) ".tar",133 ret = asprintf(&fnunpack, "/tmp/%s-for-helenos-" STRING(UARCH) ".tar", 133 134 pkg_name); 134 if (r c< 0) {135 if (ret < 0) { 135 136 printf("Out of memory.\n"); 136 137 return ENOMEM;
Note:
See TracChangeset
for help on using the changeset viewer.
