/// <summary>
 /// Update available versions for git packages.
 /// </summary>
 public static void UpdateAvailableVersionsForGitPackages()
 {
     // Start update task.
     foreach (var package in PackageExtensions.GetGitPackages())
     {
         var pInfo   = package.GetInstalledVersion().GetPackageInfo();
         var repoUrl = PackageUtils.GetRepoUrl(pInfo.packageId);
         Debug.Log(kHeader, $"[UpdateAvailableVersionsForGitPackages] {pInfo.packageId} => {pInfo.name}, {repoUrl}");
         AvailableVersionExtensions.UpdateAvailableVersions(pInfo.name, repoUrl);
     }
 }
Exemple #2
0
        /// <summary>
        /// Update all infomations of git packages.
        /// </summary>
        public static void UpdateGitPackageVersions()
        {
            bool changed = false;

            // Start update task.
            foreach (var package in PackageExtensions.GetGitPackages())
            {
                var pInfo    = package.GetInstalledVersion().GetPackageInfo();
                var repoUrl  = PackageUtils.GetRepoUrl(pInfo.packageId);
                var versions = AvailableVersions.GetVersions(package.GetName(), repoUrl);
                Debug.Log(kHeader, $"[UpdateGitPackageVersions] {pInfo.packageId} => {package.GetName()}, {repoUrl}, {versions.Count()}");
                changed = UpdatePackageVersions(package, versions) | changed;
            }

            if (changed)
            {
                UpdatePackageCollection();
            }
        }
 public static void UpdatePackageCollection()
 {
     Debug.Log(kHeader, "[UpdatePackageCollection]");
     PackageExtensions.UpdatePackageCollection();
 }