modmore / Gitify

Command line toolkit to make managing a MODX site in git a lot easier.
MIT License
122 stars 55 forks source link

Wrong package found and installed #58

Closed Beagon closed 9 years ago

Beagon commented 9 years ago

I defined FormIt in my .gitify but what happens is that gitify uses the modx search to find the package and then downloads the first returned package. The first returned package for a search of FormIt is FormIt2db so it downloads and installs the wrong package.

I've been pondering with 2 solutions:

Mark-H commented 9 years ago

Also happens for "migx" which installs "migxMultiLang" instead. While this is in my opinion a server-side issue with the package repo,maybe the way to fix this is to simply prefer exact matches in the Gitify code. This would choose "migx" over "migxmultilang" from the result set and should also work with the formit example in this issue.

alroniks commented 9 years ago

Thank you @Mark-H :+1: