Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#3794 - extra check for namcap
Attached to Project:
Arch Linux
Opened by arjan timmerman (blaasvis) - Monday, 16 January 2006, 22:52 GMT
Last edited by Jason Chu (jason) - Tuesday, 01 May 2007, 03:44 GMT
Opened by arjan timmerman (blaasvis) - Monday, 16 January 2006, 22:52 GMT
Last edited by Jason Chu (jason) - Tuesday, 01 May 2007, 03:44 GMT
|
Detailserror: the following file conflicts were found:
gdesklets: /opt/gnome/share/applications/mimeinfo.cache: exists in filesystem gdesklets: /opt/gnome/share/mime/XMLnamespaces: exists in filesystem gdesklets: /opt/gnome/share/mime/aliases: exists in filesystem gdesklets: /opt/gnome/share/mime/globs: exists in filesystem gdesklets: /opt/gnome/share/mime/magic: exists in filesystem gdesklets: /opt/gnome/share/mime/subclasses: exists in filesystem Please add a check for these files, they should be generated on install |
This task depends upon
#
# namcap rules - gnomemime
# Copyright (C) 2003, 2004 Jason Chu <jason@archlinux.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
import tarfile
class package:
def short_name(self):
return "gnomemime"
def long_name(self):
return "Checks for generated GNOME mime files"
def prereq(self):
return "tar"
def analyze(self, pkginfo, tar):
mime_files = [
'/opt/gnome/share/applications/mimeinfo.cache',
'/opt/gnome/share/mime/XMLnamespaces',
'/opt/gnome/share/mime/aliases',
'/opt/gnome/share/mime/globs',
'/opt/gnome/share/mime/magic',
'/opt/gnome/share/mime/subclasses'
]
ret = [[],[],[]]
for i in tar.getnames():
fileok = 0
if i in mime_files:
ret[1].append("File (" + i + ") is an auto-generated GNOME mime file")
return ret
def type(self):
return "tarball"
I made a couple modifications, but it's in svn now.
Also, unused variable "fileok"
This one was easy, so I decided to close it out.