Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
installer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
5
Issues
5
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
redox-os
installer
Commits
eb2c0aaf
Commit
eb2c0aaf
authored
Jan 09, 2017
by
Jeremy Soller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix package loop
parent
5303301d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/install/mod.rs
src/install/mod.rs
+2
-2
No files found.
src/install/mod.rs
View file @
eb2c0aaf
...
...
@@ -151,8 +151,8 @@ pub fn install(config: Config) -> Result<(), String> {
dir!
(
""
);
for
(
packagename
,
_
package
)
in
config
.packages
{
let
remote_path
=
format!
(
"{}/{}.tar"
,
pkgutils
::
REPO_REMOTE
,
$
name
);
let
local_path
=
format!
(
"pkg/{}.tar"
,
$
name
);
let
remote_path
=
format!
(
"{}/{}.tar"
,
pkgutils
::
REPO_REMOTE
,
package
name
);
let
local_path
=
format!
(
"pkg/{}.tar"
,
package
name
);
if
let
Some
(
parent
)
=
Path
::
new
(
&
local_path
)
.parent
()
{
println!
(
"Create package repository {}"
,
parent
.display
());
fs
::
create_dir_all
(
parent
)
.map_err
(|
err
|
format!
(
"failed to create package repository {}: {}"
,
parent
.display
(),
err
))
?
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment