fix: Re-packaged application PKGBUILD and fixed error with empty calendar event names
This commit is contained in:
		
							
								
								
									
										4
									
								
								PKGBUILD
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								PKGBUILD
									
									
									
									
									
								
							@@ -1,7 +1,7 @@
 | 
				
			|||||||
# Maintainer: Nicholas Novak <nicholasmnovak@gmail.com>
 | 
					# Maintainer: Nicholas Novak <nicholasmnovak@gmail.com>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
pkgname=assign-notify
 | 
					pkgname=assign-notify
 | 
				
			||||||
pkgver=r2.582eaf6
 | 
					pkgver=r4.fcc94ca
 | 
				
			||||||
pkgrel=1
 | 
					pkgrel=1
 | 
				
			||||||
pkgdesc="Assignment Notifier CLI"
 | 
					pkgdesc="Assignment Notifier CLI"
 | 
				
			||||||
arch=('any')
 | 
					arch=('any')
 | 
				
			||||||
@@ -10,7 +10,7 @@ provides=('assign-notify')
 | 
				
			|||||||
depends=('go')
 | 
					depends=('go')
 | 
				
			||||||
url="https://gitlab.nicholasnovak.io/nnovak/assign-notify"
 | 
					url="https://gitlab.nicholasnovak.io/nnovak/assign-notify"
 | 
				
			||||||
source=(
 | 
					source=(
 | 
				
			||||||
	"assign-notify::git+ssh://git@ssh-gitlab.nicholasnovak.io:1022/nnovak/assign-notify.git"
 | 
						"assign-notify::git+https://git.nicholasnovak.io/nnovak/assign-notify.git"
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
md5sums=('SKIP')
 | 
					md5sums=('SKIP')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -101,8 +101,14 @@ func FromVEvent(external *ics.VEvent) (event CalendarEvent, err error) {
 | 
				
			|||||||
			}
 | 
								}
 | 
				
			||||||
		case "CATEGORIES":
 | 
							case "CATEGORIES":
 | 
				
			||||||
			dashIndex := strings.Index(prop.Value, "-")
 | 
								dashIndex := strings.Index(prop.Value, "-")
 | 
				
			||||||
			event.Category.ClassName = prop.Value[:dashIndex]
 | 
					
 | 
				
			||||||
			event.Category.OtherData = prop.Value[dashIndex:]
 | 
								// If there was no dash found, treat the property as its entire name
 | 
				
			||||||
 | 
								if dashIndex == -1 {
 | 
				
			||||||
 | 
									event.Category.ClassName = prop.Value
 | 
				
			||||||
 | 
								} else {
 | 
				
			||||||
 | 
									event.Category.ClassName = prop.Value[:dashIndex]
 | 
				
			||||||
 | 
									event.Category.OtherData = prop.Value[dashIndex:]
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
		default:
 | 
							default:
 | 
				
			||||||
			panic("Unknown token when parsing event: " + prop.IANAToken)
 | 
								panic("Unknown token when parsing event: " + prop.IANAToken)
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user