Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
P
pamac
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefano Capitani
pamac
Commits
d7a84e2a
Commit
d7a84e2a
authored
Oct 06, 2019
by
guinux
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'development'
parents
6f950f5e
dea58e61
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
10 deletions
+8
-10
src/database.vala
src/database.vala
+8
-10
No files found.
src/database.vala
View file @
d7a84e2a
...
...
@@ -36,7 +36,7 @@ namespace Pamac {
AUR
aur
;
As
.
Store
app_store
;
string
locale
;
GenericSet
<
string
?>
already_vcs_checked
;
HashTable
<
string
,
AURPackage
>
aur_vcs_pkgs
;
#if ENABLE_SNAP
SnapPlugin
snap_plugin
;
#endif
...
...
@@ -51,7 +51,7 @@ namespace Pamac {
construct
{
loop
=
new
MainLoop
();
a
lready_vcs_checked
=
new
GenericSet
<
string
?
>
(
str_hash
,
str_equal
);
a
ur_vcs_pkgs
=
new
HashTable
<
string
,
AURPackage
>
(
str_hash
,
str_equal
);
refresh
();
aur
=
new
AUR
();
// init appstream
...
...
@@ -105,7 +105,7 @@ namespace Pamac {
}
else
{
files_handle
=
alpm_config
.
get_handle
(
true
);
}
a
lready_vcs_checked
.
remove_all
();
a
ur_vcs_pkgs
.
remove_all
();
}
public
List
<
string
>
get_mirrors_countries
()
{
...
...
@@ -1792,10 +1792,9 @@ namespace Pamac {
return
updates
;
}
SList
<
AURPackage
>
get_vcs_last_version
(
string
[]
vcs_local_pkgs
)
{
var
vcs_packages
=
new
SList
<
AURPackage
>
();
List
<
unowned
AURPackage
>
get_vcs_last_version
(
string
[]
vcs_local_pkgs
)
{
foreach
(
unowned
string
pkgname
in
vcs_local_pkgs
)
{
if
(
a
lready_vcs_checked
.
contains
(
pkgname
))
{
if
(
a
ur_vcs_pkgs
.
contains
(
pkgname
))
{
continue
;
}
// get last build files
...
...
@@ -1934,8 +1933,7 @@ namespace Pamac {
aur_pkg
.
desc
=
desc
;
aur_pkg
.
packagebase
=
pkgbase
;
pkgnames_table
.
insert
(
pkgname_found
,
aur_pkg
);
pkgnames_found
.
append
(
pkgname_found
);
already_vcs_checked
.
add
((
owned
)
pkgname_found
);
pkgnames_found
.
append
((
owned
)
pkgname_found
);
}
}
}
...
...
@@ -1960,7 +1958,7 @@ namespace Pamac {
if
(
global_makedepends
.
length
()
>
0
)
{
aur_pkg
.
makedepends_priv
=
(
owned
)
global_makedepends
;
}
vcs_packages
.
append
(
aur_pkg
);
aur_vcs_pkgs
.
insert
(
pkgname_found
,
aur_pkg
);
}
}
catch
(
GLib
.
Error
e
)
{
critical
(
"%s\n"
,
e
.
message
);
...
...
@@ -1970,7 +1968,7 @@ namespace Pamac {
}
}
}
return
vcs_packages
;
return
aur_vcs_pkgs
.
get_values
()
;
}
AURUpdates
get_aur_updates_real
(
List
<
unowned
Json
.
Object
>
aur_infos
,
string
[]
vcs_local_pkgs
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment