Skip to content

Commit

Permalink
Fix count number of Packages.
Browse files Browse the repository at this point in the history
  • Loading branch information
eloaders committed Jul 24, 2014
1 parent b48bbf0 commit f89cd7f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions I-Nex/i-nex/.src/Finfosys.class
Original file line number Diff line number Diff line change
Expand Up @@ -773,8 +773,12 @@ End
Public Sub Button7_Click()
Dim packages As String
Shell "grep \"^Status: install ok installed\" /var/lib/dpkg/status | wc -l" Wait To packages
If ChkPrm.ChkExec("rpm") = True And IsNull(packages) = True Then
Shell "rpm -qa | wc -l" Wait To packages
Endif
If ChkPrm.ChkExec("pacman") = True Then
Shell "pacman -Q|wc -l" Wait To packages
Endif
TextLabel21.Visible = True

TextLabel21.Text = packages & " Packages are installed "
Expand Down

0 comments on commit f89cd7f

Please sign in to comment.