[PATCH 1/2] backports-update-manager: Add option to not update git trees

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Add the '--no-git-update which will deactivate updating the git trees.
This can be used in the github actions.

Signed-off-by: Hauke Mehrtens <hauke@xxxxxxxxxx>
---
 devel/backports-update-manager | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/devel/backports-update-manager b/devel/backports-update-manager
index 9177be76..815a0421 100755
--- a/devel/backports-update-manager
+++ b/devel/backports-update-manager
@@ -629,6 +629,8 @@ def _main():
     parser.add_argument('--reference', metavar='<path-to-git-obj-dir>', type=str,
                         default=None,
                         help='Override what argument to use to git clone --reference')
+    parser.add_argument('--no-git-update', const=True, default=False, action="store_const",
+                        help='Don\'t update git trees')
     args = parser.parse_args()
 
     bk_updater = backport_kernel_updater(yes=args.yes or args.force,
@@ -649,7 +651,8 @@ def _main():
     bk_updater.remove_stale_kernel_dirs()
     bk_updater.get_backport_pkgs()
     bk_updater.extract_backport_pkgs()
-    bk_updater.update_git_trees()
+    if not args.no_git_update:
+        bk_updater.update_git_trees()
 
     return 0
 
-- 
2.43.0





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux