Skip to content

Commit

Permalink
hasq -> has because 'QA Notice: The 'hasq' function is deprecated (re…
Browse files Browse the repository at this point in the history
…placed by 'has')'
  • Loading branch information
Piotr Karbowski committed Jul 16, 2011
1 parent cb1eac2 commit 8919c34
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
# git clone https://github.com/slashbeast/foobashrc.git
# ln -s /root/src/foobashrc/bashrc /etc/portage/bashrc



localpatch() {
local patches_overlay_dir patches patch locksufix

Expand Down Expand Up @@ -88,17 +90,18 @@ striplafiles() {
fi
}


post_src_unpack() {
if hasq localpatch ${foobashrc_modules}; then
if has localpatch ${foobashrc_modules}; then
localpatch
fi
}

post_pkg_preinst() {
if hasq striplafiles ${foobashrc_modules}; then striplafiles; fi
if hasq pathparanoid ${foobashrc_modules}; then /root/bin/pathparanoid --prefix "$D" --check --adjust; fi
if has striplafiles ${foobashrc_modules}; then striplafiles; fi
if has pathparanoid ${foobashrc_modules}; then /root/bin/pathparanoid --prefix "$D" --check --adjust; fi
}

post_pkg_postinst() {
if hasq pathparanoid ${foobashrc_modules}; then /root/bin/pathparanoid --check --adjust; fi
if has pathparanoid ${foobashrc_modules}; then /root/bin/pathparanoid --check --adjust; fi
}

0 comments on commit 8919c34

Please sign in to comment.