Updates yupdate to support updating package.ymls that are using git sources as the url.
Adds --yml argument so that the if block at the top of the main function is used.
testing
testing showing yupdate checks for package.yml existence and that the file must have the extension .yml
isaac@xps13 ~/packaging/hub $ ../../git/etc/ypkg/yupdate 2.14.2 "git|https://github.com/github/hub.git" --yml does-not-exist.yml
Specified file does not exist
isaac@xps13 ~/packaging/hub $ cp package.{yml,yaml}
isaac@xps13 ~/packaging/hub $ ../../git/etc/ypkg/yupdate 2.14.2 "git|https://github.com/github/hub.git" --yml package.yaml
package.yaml does not look like a valid package.yml file
testing on a repo that uses a git source:
isaac@xps13 ~/packaging/hub $ pwd
/home/isaac/packaging/hub
isaac@xps13 ~/packaging/hub $ g diff package.yml
isaac@xps13 ~/packaging/hub $ ../../git/etc/ypkg/yupdate 2.14.2 "git|https://github.com/github/hub.git"
isaac@xps13 ~/packaging/hub $ g diff package.yml
diff --git a/package.yml b/package.yml
index d50ac56..0ae385e 100644
--- a/package.yml
+++ b/package.yml
@@ -1,8 +1,8 @@
name : hub
-version : 2.10.0
-release : 10
+version : 2.14.2
+release : 11
source :
- - git|https://github.com/github/hub.git : v2.10.0
+ - git|https://github.com/github/hub.git : v2.14.2
license : MIT
component : system.utils
summary : A command line tool that wraps git in order to extend it with extra features and commands that make working with GitHub easier
isaac@xps13 ~/packaging/hub $
testing on a standard package.yml (note no version update so checksum remains the same)
changes
yupdate
to support updatingpackage.yml
s that are usinggit
sources as the url.--yml
argument so that theif
block at the top of the main function is used.testing
testing showing
yupdate
checks forpackage.yml
existence and that the file must have the extension.yml
testing on a repo that uses a
git
source:testing on a standard
package.yml
(note no version update so checksum remains the same)