mirror of
https://github.com/EnumeratedDev/bpm-utils.git
synced 2026-09-24 14:36:13 +00:00
Compare commits
3
Commits
5240ae4a8c
...
598e6710f4
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
598e6710f4
|
||
|
|
902fcbf296
|
||
|
|
03bf97b8d8
|
@@ -114,6 +114,11 @@ func createRepository(name, description string) {
|
||||
log.Fatalf("Error: could not write to file: %s", err)
|
||||
}
|
||||
|
||||
err = os.Mkdir(path.Join(name, "source"), 0755)
|
||||
if err != nil {
|
||||
log.Fatalf("Error: could not create directory: %s", err)
|
||||
}
|
||||
|
||||
fmt.Println("Repository created successfully!")
|
||||
}
|
||||
|
||||
|
||||
@@ -123,6 +123,7 @@ func createDirectory() {
|
||||
Name: *name,
|
||||
Description: *description,
|
||||
Version: *version,
|
||||
Revision: 1,
|
||||
Url: *url,
|
||||
License: *license,
|
||||
Arch: "any",
|
||||
|
||||
@@ -22,6 +22,7 @@ type PackageInfo struct {
|
||||
Type string `yaml:"type,omitempty"`
|
||||
Keep []string `yaml:"keep,omitempty"`
|
||||
Depends []string `yaml:"depends,omitempty"`
|
||||
RuntimeDepends []string `yaml:"runtime_depends,omitempty"`
|
||||
OptionalDepends []string `yaml:"optional_depends,omitempty"`
|
||||
MakeDepends []string `yaml:"make_depends,omitempty"`
|
||||
Conflicts []string `yaml:"conflicts,omitempty"`
|
||||
@@ -55,6 +56,7 @@ func ReadPackageInfo(data []byte) (*PackageInfo, error) {
|
||||
Keep: make([]string, 0),
|
||||
Depends: make([]string, 0),
|
||||
MakeDepends: make([]string, 0),
|
||||
RuntimeDepends: make([]string, 0),
|
||||
OptionalDepends: make([]string, 0),
|
||||
Conflicts: make([]string, 0),
|
||||
Replaces: make([]string, 0),
|
||||
|
||||
Reference in New Issue
Block a user