simple checking for remote packets
This commit is contained in:
@@ -64,6 +64,9 @@ func LGitCheckout(L *lua.LState) int {
|
||||
func LGitPUll(L *lua.LState) int {
|
||||
dir := L.CheckString(1)
|
||||
|
||||
|
||||
git.PlainClone("/tmp", &git.CloneOptions{})
|
||||
|
||||
depth := 1
|
||||
if L.GetTop() > 1 {
|
||||
depth = L.CheckInt(2)
|
||||
|
||||
@@ -264,6 +264,9 @@ func ResolvDependencies(depnList map[string]string) ([]string, error) {
|
||||
value := strings.TrimLeft(constraint, "<>=")
|
||||
|
||||
switch {
|
||||
case constraint == "any":
|
||||
filter = ""
|
||||
order = "ORDER BY serial DESC LIMIT 1"
|
||||
case strings.HasPrefix(constraint, ">"):
|
||||
filter = fmt.Sprintf("AND serial > %s", value)
|
||||
order = "ORDER BY serial DESC LIMIT 1"
|
||||
|
||||
Reference in New Issue
Block a user