<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -129,6 +129,7 @@ usage () {
 
 # update() -- update the package file list {{{
 update () {
+        local target_repo=&quot;$1&quot;
         cd_filelist_dir
         local repo_done=()
 
@@ -138,6 +139,7 @@ update () {
 	do
                 [ $DEBUG -ge 2 ] &amp;&amp; set -x
 
+                [ -n &quot;$target_repo&quot; ] &amp;&amp; [ &quot;$repo&quot; != &quot;$target_repo&quot; ] &amp;&amp; continue
                 in_array &quot;$repo&quot; &quot;${repo_done[@]}&quot; &amp;&amp; continue
                 [ -n &quot;$REPOS&quot; ] &amp;&amp; ! in_array &quot;$repo&quot; &quot;${REPOS[@]}&quot; &amp;&amp; continue
 
@@ -342,7 +344,7 @@ while [ $# -gt 0 ]; do
                         ACTION=search
                         ;;
                 -u|--update)
-                        UPDATE=$(( UPDATE += 1 ))
+                        ACTION=update
                         ;;
                 -v|--verbose)
                         VERBOSE=1
@@ -355,14 +357,6 @@ while [ $# -gt 0 ]; do
         shift
 done
 
-if [ $UPDATE -ge 1 ]; then
-#        if [ $UPDATE -ge 2 ]; then
-#                update force # This will be used when I check timestamps. Analogous to pacman -Syy
-#        else
-                update
-#        fi
-fi
-
 if [ -z &quot;$SEARCHTARGET&quot; ]; then
         die 1 &quot;No target specified to search for!\n&quot;
 fi
@@ -372,6 +366,9 @@ if [ -n &quot;$RATELIMIT&quot; ]; then
 fi
 
 case $ACTION in
+        update)
+                update &quot;$SEARCHTARGET&quot;
+                ;;
         search|regex)
                 search &quot;$SEARCHTARGET&quot;
                 ;;</diff>
      <filename>scripts/pkgfile</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>50b1ced8e59df49e16cfbbdd19b4e9ea83d86e61</id>
    </parent>
  </parents>
  <author>
    <name>Daenyth</name>
    <email>Daenyth+github@gmail.com</email>
  </author>
  <url>http://github.com/Daenyth/pkgtools/commit/5b6f7621bba6710774546ca47bcbbabbe2d399e7</url>
  <id>5b6f7621bba6710774546ca47bcbbabbe2d399e7</id>
  <committed-date>2009-10-29T21:02:32-07:00</committed-date>
  <authored-date>2009-10-29T21:02:32-07:00</authored-date>
  <message>pkgfile: Allow updating specific repos only

Note that this will disable searching for a file while updating
Fixes FS#16913

Signed-off-by: Daenyth &lt;Daenyth+github@gmail.com&gt;</message>
  <tree>982f5a94f4c29d25710bd40724d1703f1fc6f4a5</tree>
  <committer>
    <name>Daenyth</name>
    <email>Daenyth+github@gmail.com</email>
  </committer>
</commit>
