projects
/
packages.grml.org.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b092ae7
)
Print list of Source packages not in local git-repos
author
Christian Hofstaedtler
<ch@grml.org>
Tue, 29 Nov 2011 11:09:54 +0000
(12:09 +0100)
committer
Christian Hofstaedtler
<ch@grml.org>
Tue, 29 Nov 2011 11:09:54 +0000
(12:09 +0100)
update.rb
patch
|
blob
|
history
diff --git
a/update.rb
b/update.rb
index
992d4ca
..
f45b3da
100755
(executable)
--- a/
update.rb
+++ b/
update.rb
@@
-143,6
+143,9
@@
template = ERB.new <<-EOF
<% end %>
</table>
</div>
+ <div>
+ Other packages: <% other_packages.join(" ") %>
+ </div>
<footer>
<p>Last update: <%= Time.now.to_s %></p>
</footer>
@@
-163,6
+166,7
@@
git_repos = Hash[*(Dir.glob('git/*.git').map do |p| [File.basename(p, '.git'), p
update_git_repos git_repos
packages = build_package_list(git_repos, used_packages, sources)
+other_packages = (sources.keys - git_repos.keys)
File.open('index.html.new','w') do |f|
f.write template.result(binding)