浏览代码

hotfix xup

Noah Vogt 1 年之前
父节点
当前提交
77c4724460
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      local-bin/xup

+ 3 - 1
local-bin/xup

@@ -8,13 +8,15 @@ more_than_one_arguemt_given=0
 commit_msg="updated"
 
 for file in "$@"; do
+    # TODO: add epoch to $pkgver
     pkgver="$(grep "^\s*pkgver\|^\s*pkgrel" .SRCINFO | sed "s/^\s*pkgver\s*=\s*//; s/^\s*pkgrel\s*=\s*/-/"| tr -d "\n")"
     pkgname="${file%%-"$pkgver"*}"
 
     for old_pkg in "$xdg_repo_path/$pkgname"*.pkg.tar.zst; do
         if [ -e "$old_pkg" ]; then
             rm "$xdg_repo_path/$pkgname"*.pkg.tar.zst
-            break
+            # TODO: broken, use another way to break out of inner loop
+            # break
         fi
     done